Skip to content

Commit 32f36ad

Browse files
author
Vlad Ionescu
committed
realized I should add Is*Present methods to interfaces as well
1 parent a4e23e0 commit 32f36ad

File tree

3 files changed

+85
-1
lines changed

3 files changed

+85
-1
lines changed

src/client/api/IBasicProperties.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,48 @@ public interface IBasicProperties : IContentHeader
162162
///<summary> Clear the ClusterId property. </summary>
163163
void ClearClusterId();
164164

165+
///<summary> Returns true iff the ContentType property is present. </summary>
166+
bool IsContentTypePresent();
167+
168+
///<summary> Returns true iff the ContentEncoding property is present. </summary>
169+
bool IsContentEncodingPresent();
170+
171+
///<summary> Returns true iff the Headers property is present. </summary>
172+
bool IsHeadersPresent();
173+
174+
///<summary> Returns true iff the DeliveryMode property is present. </summary>
175+
bool IsDeliveryModePresent();
176+
177+
///<summary> Returns true iff the Priority property is present. </summary>
178+
bool IsPriorityPresent();
179+
180+
///<summary> Returns true iff the CorrelationId property is present. </summary>
181+
bool IsCorrelationIdPresent();
182+
183+
///<summary> Returns true iff the ReplyTo property is present. </summary>
184+
bool IsReplyToPresent();
185+
186+
///<summary> Returns true iff the Expiration property is present. </summary>
187+
bool IsExpirationPresent();
188+
189+
///<summary> Returns true iff the MessageId property is present. </summary>
190+
bool IsMessageIdPresent();
191+
192+
///<summary> Returns true iff the Timestamp property is present. </summary>
193+
bool IsTimestampPresent();
194+
195+
///<summary> Returns true iff the Type property is present. </summary>
196+
bool IsTypePresent();
197+
198+
///<summary> Returns true iff the UserId property is present. </summary>
199+
bool IsUserIdPresent();
200+
201+
///<summary> Returns true iff the AppId property is present. </summary>
202+
bool IsAppIdPresent();
203+
204+
///<summary> Returns true iff the ClusterId property is present. </summary>
205+
bool IsClusterIdPresent();
206+
165207
///<summary>Convenience property; parses ReplyTo property
166208
///using PublicationAddress.Parse, and serializes it using
167209
///PublicationAddress.ToString. Returns null if ReplyTo property

src/client/api/IFileProperties.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,32 @@ public interface IFileProperties : IContentHeader
131131

132132
///<summary> Clear the ClusterId property. </summary>
133133
void ClearClusterId();
134+
135+
///<summary> Returns true iff the ContentType property is present. </summary>
136+
bool IsContentTypePresent();
137+
138+
///<summary> Returns true iff the ContentEncoding property is present. </summary>
139+
bool IsContentEncodingPresent();
140+
141+
///<summary> Returns true iff the Headers property is present. </summary>
142+
bool IsHeadersPresent();
143+
144+
///<summary> Returns true iff the Priority property is present. </summary>
145+
bool IsPriorityPresent();
146+
147+
///<summary> Returns true iff the ReplyTo property is present. </summary>
148+
bool IsReplyToPresent();
149+
150+
///<summary> Returns true iff the MessageId property is present. </summary>
151+
bool IsMessageIdPresent();
152+
153+
///<summary> Returns true iff the Filename property is present. </summary>
154+
bool IsFilenamePresent();
155+
156+
///<summary> Returns true iff the Timestamp property is present. </summary>
157+
bool IsTimestampPresent();
158+
159+
///<summary> Returns true iff the ClusterId property is present. </summary>
160+
bool IsClusterIdPresent();
134161
}
135162
}

src/client/api/IStreamProperties.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ public interface IStreamProperties : IContentHeader
106106
void ClearPriority();
107107

108108
///<summary> Clear the Timestamp property. </summary>
109-
void ClearTimestamp();
109+
void ClearTimestamp();
110+
111+
///<summary> Returns true iff the ContentType property is present. </summary>
112+
bool IsContentTypePresent();
113+
114+
///<summary> Returns true iff the ContentEncoding property is present. </summary>
115+
bool IsContentEncodingPresent();
116+
117+
///<summary> Returns true iff the Headers property is present. </summary>
118+
bool IsHeadersPresent();
119+
120+
///<summary> Returns true iff the Priority property is present. </summary>
121+
bool IsPriorityPresent();
122+
123+
///<summary> Returns true iff the Timestamp property is present. </summary>
124+
bool IsTimestampPresent();
110125
}
111126
}

0 commit comments

Comments
 (0)