コード例 #1
0
        /// <summary>
        /// Determines whether the specified System.Object are considered equal.
        /// </summary>
        /// <param name="obj">The System.Object to compare with the current System.Object</param>
        /// <returns>true if the specified System.Object is equal to the current System.Object; otherwise, false.</returns>
        public override bool Equals(object obj)
        {
            MessageContact other = obj as MessageContact;

            if (other == null)
            {
                return(false);
            }

            if (Id != other.Id)
            {
                return(false);
            }
            if (Uri != other.Uri)
            {
                return(false);
            }
            if (DisplayName != other.DisplayName)
            {
                return(false);
            }
            if (PhoneNumber != other.PhoneNumber)
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
 /// <summary>
 /// Initialises a new instance of the com.esendex.sdk.core.Message
 /// </summary>
 public Message()
 {
     Body       = new MessageBody();
     Recipient  = new MessageContact();
     Originator = new MessageContact();
 }
コード例 #3
0
 /// <summary>
 /// Initialises a new instance of the com.esendex.sdk.core.Message
 /// </summary>
 public Message()
 {
     Body = new MessageBody();
     Recipient = new MessageContact();
     Originator = new MessageContact();
 }