InviteInfo.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. package com.genersoft.iot.vmp.common;
  2. import com.genersoft.iot.vmp.service.bean.SSRCInfo;
  3. /**
  4. * 记录每次发送invite消息的状态
  5. */
  6. public class InviteInfo {
  7. private String deviceId;
  8. private String channelId;
  9. private String stream;
  10. private SSRCInfo ssrcInfo;
  11. private String receiveIp;
  12. private Integer receivePort;
  13. private String streamMode;
  14. private InviteSessionType type;
  15. private InviteSessionStatus status;
  16. private StreamInfo streamInfo;
  17. public static InviteInfo getInviteInfo(String deviceId, String channelId, String stream, SSRCInfo ssrcInfo,
  18. String receiveIp, Integer receivePort, String streamMode,
  19. InviteSessionType type, InviteSessionStatus status) {
  20. InviteInfo inviteInfo = new InviteInfo();
  21. inviteInfo.setDeviceId(deviceId);
  22. inviteInfo.setChannelId(channelId);
  23. inviteInfo.setStream(stream);
  24. inviteInfo.setSsrcInfo(ssrcInfo);
  25. inviteInfo.setReceiveIp(receiveIp);
  26. inviteInfo.setReceivePort(receivePort);
  27. inviteInfo.setStreamMode(streamMode);
  28. inviteInfo.setType(type);
  29. inviteInfo.setStatus(status);
  30. return inviteInfo;
  31. }
  32. public String getDeviceId() {
  33. return deviceId;
  34. }
  35. public void setDeviceId(String deviceId) {
  36. this.deviceId = deviceId;
  37. }
  38. public String getChannelId() {
  39. return channelId;
  40. }
  41. public void setChannelId(String channelId) {
  42. this.channelId = channelId;
  43. }
  44. public InviteSessionType getType() {
  45. return type;
  46. }
  47. public void setType(InviteSessionType type) {
  48. this.type = type;
  49. }
  50. public InviteSessionStatus getStatus() {
  51. return status;
  52. }
  53. public void setStatus(InviteSessionStatus status) {
  54. this.status = status;
  55. }
  56. public StreamInfo getStreamInfo() {
  57. return streamInfo;
  58. }
  59. public void setStreamInfo(StreamInfo streamInfo) {
  60. this.streamInfo = streamInfo;
  61. }
  62. public String getStream() {
  63. return stream;
  64. }
  65. public void setStream(String stream) {
  66. this.stream = stream;
  67. }
  68. public SSRCInfo getSsrcInfo() {
  69. return ssrcInfo;
  70. }
  71. public void setSsrcInfo(SSRCInfo ssrcInfo) {
  72. this.ssrcInfo = ssrcInfo;
  73. }
  74. public String getReceiveIp() {
  75. return receiveIp;
  76. }
  77. public void setReceiveIp(String receiveIp) {
  78. this.receiveIp = receiveIp;
  79. }
  80. public Integer getReceivePort() {
  81. return receivePort;
  82. }
  83. public void setReceivePort(Integer receivePort) {
  84. this.receivePort = receivePort;
  85. }
  86. public String getStreamMode() {
  87. return streamMode;
  88. }
  89. public void setStreamMode(String streamMode) {
  90. this.streamMode = streamMode;
  91. }
  92. }