예제 #1
0
 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);
 }
예제 #2
0
 public FollowStoreRequest(FollowRequest.Type type, ulong artistID)
 {
     FollowType = type;
     ArtistID = artistID;
 }