1 /* 2 * hunt-proton: AMQP Protocol library for D programming language. 3 * 4 * Copyright (C) 2018-2019 HuntLabs 5 * 6 * Website: https://www.huntlabs.net/ 7 * 8 * Licensed under the Apache-2.0 License. 9 * 10 */ 11 12 13 module hunt.proton.amqp.messaging.Properties; 14 15 import std.datetime.date; 16 17 import hunt.proton.amqp.Binary; 18 import hunt.proton.amqp.Symbol; 19 import hunt.proton.amqp.UnsignedInteger; 20 import hunt.proton.amqp.messaging.Section; 21 import hunt.String; 22 import hunt.time.LocalDateTime; 23 24 25 alias Date = LocalDateTime; 26 27 class Properties : Section 28 { 29 private String _messageId; 30 private Binary _userId; 31 private String _to; 32 private String _subject; 33 private String _replyTo; 34 private String _correlationId; 35 private Symbol _contentType; 36 private Symbol _contentEncoding; 37 private Date _absoluteExpiryTime; 38 private Date _creationTime; 39 private String _groupId; 40 private UnsignedInteger _groupSequence; 41 private String _replyToGroupId; 42 43 this() 44 { 45 } 46 47 this(Properties other) 48 { 49 this._messageId = other._messageId; 50 this._userId = other._userId; 51 this._to = other._to; 52 this._subject = other._subject; 53 this._replyTo = other._replyTo; 54 this._correlationId = other._correlationId; 55 this._contentType = other._contentType; 56 this._contentEncoding = other._contentEncoding; 57 this._absoluteExpiryTime = other._absoluteExpiryTime; 58 this._creationTime = other._creationTime; 59 this._groupId = other._groupId; 60 this._groupSequence = other._groupSequence; 61 this._replyToGroupId = other._replyToGroupId; 62 } 63 64 public String getMessageId() 65 { 66 return _messageId; 67 } 68 69 public void setMessageId(String messageId) 70 { 71 _messageId = messageId; 72 } 73 74 public Binary getUserId() 75 { 76 return _userId; 77 } 78 79 public void setUserId(Binary userId) 80 { 81 _userId = userId; 82 } 83 84 public String getTo() 85 { 86 return _to; 87 } 88 89 public void setTo(String to) 90 { 91 _to = to; 92 } 93 94 public String getSubject() 95 { 96 return _subject; 97 } 98 99 public void setSubject(String subject) 100 { 101 _subject = subject; 102 } 103 104 public String getReplyTo() 105 { 106 return _replyTo; 107 } 108 109 public void setReplyTo(String replyTo) 110 { 111 _replyTo = replyTo; 112 } 113 114 public String getCorrelationId() 115 { 116 return _correlationId; 117 } 118 119 public void setCorrelationId(String correlationId) 120 { 121 _correlationId = correlationId; 122 } 123 124 public Symbol getContentType() 125 { 126 return _contentType; 127 } 128 129 public void setContentType(Symbol contentType) 130 { 131 _contentType = contentType; 132 } 133 134 public Symbol getContentEncoding() 135 { 136 return _contentEncoding; 137 } 138 139 public void setContentEncoding(Symbol contentEncoding) 140 { 141 _contentEncoding = contentEncoding; 142 } 143 144 public Date getAbsoluteExpiryTime() 145 { 146 return _absoluteExpiryTime; 147 } 148 149 public void setAbsoluteExpiryTime(Date absoluteExpiryTime) 150 { 151 _absoluteExpiryTime = absoluteExpiryTime; 152 } 153 154 public Date getCreationTime() 155 { 156 return _creationTime; 157 } 158 159 public void setCreationTime(Date creationTime) 160 { 161 _creationTime = creationTime; 162 } 163 164 public String getGroupId() 165 { 166 return _groupId; 167 } 168 169 public void setGroupId(String groupId) 170 { 171 _groupId = groupId; 172 } 173 174 public UnsignedInteger getGroupSequence() 175 { 176 return _groupSequence; 177 } 178 179 public void setGroupSequence(UnsignedInteger groupSequence) 180 { 181 _groupSequence = groupSequence; 182 } 183 184 public String getReplyToGroupId() 185 { 186 return _replyToGroupId; 187 } 188 189 public void setReplyToGroupId(String replyToGroupId) 190 { 191 _replyToGroupId = replyToGroupId; 192 } 193 194 195 override 196 public SectionType getType() { 197 return SectionType.Properties; 198 } 199 }