Ejemplo n.º 1
0
 private static byte[] EncodeRequest(IRequestContext context, LeaveGroupRequest request)
 {
     using (var writer = EncodeHeader(context, request)) {
         return(writer
                .Write(request.GroupId)
                .Write(request.MemberId)
                .ToBytes());
     }
 }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public bool Equals(LeaveGroupRequest other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) &&
            string.Equals(GroupId, other.GroupId) &&
            string.Equals(MemberId, other.MemberId));
 }
Ejemplo n.º 3
0
 /// <inheritdoc />
 public bool Equals(LeaveGroupRequest other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) &&
            string.Equals(group_id, other.group_id) &&
            string.Equals(member_id, other.member_id));
 }