private static byte[] EncodeRequest(IRequestContext context, DescribeGroupsRequest request) { using (var writer = EncodeHeader(context, request)) { writer.Write(request.GroupIds.Count); foreach (var groupId in request.GroupIds) { writer.Write(groupId); } return(writer.ToBytes()); } }
/// <inheritdoc /> public bool Equals(DescribeGroupsRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && group_ids.HasEqualElementsInOrder(other.group_ids)); }