public void GetPlayingUserInfo_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetPlayingUserInfo_args args = new GetPlayingUserInfo_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetPlayingUserInfo_result result = new GetPlayingUserInfo_result(); try { try { result.Success = iface_.GetPlayingUserInfo(args.AppId, args.UserId); } catch (Ruyi.SDK.CommonType.ErrorException error1) { result.Error1 = error1; } oprot.WriteMessageBegin(new TMessage("GetPlayingUserInfo", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("GetPlayingUserInfo", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public Ruyi.SDK.UserServiceExternal.UserInfo_Public recv_GetPlayingUserInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetPlayingUserInfo_result result = new GetPlayingUserInfo_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.error1) { throw result.Error1; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetPlayingUserInfo failed: unknown result"); }