public override void BuildPacket() { base.BuildPacket(); var followRequest = new FollowRequest() { type = FollowType, user_id = GlobalVariables.CurrentUser.UserID, artist_id = ArtistID }; byte[] packetData; using (var stream = new MemoryStream()) { Serializer.Serialize(stream, followRequest); packetData = stream.ToArray(); } GlobalVariables.CountRequest++; Packet = StoreConnection.BuildServerPacket(packetData.Length + 16, (int)MessageType.Type.FOLLOW_UNFOLLOW, 2, packetData, GlobalVariables.CountRequest); }
public FollowStoreRequest(FollowRequest.Type type, ulong artistID) { FollowType = type; ArtistID = artistID; }