private static byte[] EncodeRequest(IRequestContext context, LeaveGroupRequest request) { using (var writer = EncodeHeader(context, request)) { return(writer .Write(request.GroupId) .Write(request.MemberId) .ToBytes()); } }
/// <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)); }
/// <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)); }