Exemplo n.º 1
0
 /// <summary>
 ///   Creates the specified query.
 /// </summary>
 /// <param name = "messageId">The caller-defined id for the message.</param>
 /// <param name = "query">The query.</param>
 /// <returns>An initialized CheckFeatureStateRequest instance.</returns>
 public static CheckFeatureStateRequest Create(string messageId, FeatureKey query)
 {
     return(new CheckFeatureStateRequest
     {
         Header = MessageHeader.Create(messageId),
         Key = query
     });
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Creates the specified feature query.
 /// </summary>
 /// <param name = "messageId">The caller-defined id for the message.</param>
 /// <param name = "query">The feature query.</param>
 /// <param name = "newState">if set to <c>true</c> [new state].</param>
 /// <returns>An initialized UpdateFeatureStateRequest instance.</returns>
 public static UpdateFeatureStateRequest Create(string messageId, FeatureKey query, bool newState)
 {
     return(new UpdateFeatureStateRequest
     {
         Header = MessageHeader.Create(messageId),
         NewState = newState,
         Key = query
     });
 }
Exemplo n.º 3
0
        /// <summary>
        ///   Determines whether the specified <see cref = "System.Object" /> is equal to this instance.
        /// </summary>
        /// <param name = "obj">The <see cref = "System.Object" /> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref = "System.Object" /> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            FeatureKey key = obj as FeatureKey;

            return(!ReferenceEquals(key, null) ? this == key : false);
        }