Пример #1
0
 public static int Async_PostLikeByWorldId(
     PostLikeByWorldIdPacket packet,
     BokuAsyncCallback callback,
     object param)
 {
     try
     {
         AsyncState state = new AsyncState();
         state.callback = callback;
         state.param    = param;
         Trans.PostLikeByWorldId trans = new Trans.PostLikeByWorldId(
             Callback_PostLikeByWorldId,
             state,
             packet);
         IRegister(state.transId);
         if (trans.Send())
         {
             return(state.transId);
         }
         else
         {
             return(0);
         }
     }
     catch
     {
         return(0);
     }
 }
Пример #2
0
 public PostLikeByWorldId(
     SendOrPostCallback callback,
     object userState,
     PostLikeByWorldIdPacket packet)
     : base(true, callback, userState)
 {
     this.packet = packet;
 }