123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- /*-----------------------------------------------
- *本文件由代码生成器自动生成,
- *千万不要修改本文件的任何代码,
- *修改的的任何代码都会被覆盖掉!
- --------------------------------------------------*/
- using System.IO;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Pomelo.DotNetClient;
- namespace pomelo.area
- {
- public class GuildFortHandler
- {
- private PomeloClient _socket;
- public GetGuildAreaListResponse lastGetGuildAreaListResponse { get { return _socket.GetLastResponse<GetGuildAreaListResponse>(); } }
- public GetGuildAreaDetailResponse lastGetGuildAreaDetailResponse { get { return _socket.GetLastResponse<GetGuildAreaDetailResponse>(); } }
- public GetGuildAreaApplyListResponse lastGetGuildAreaApplyListResponse { get { return _socket.GetLastResponse<GetGuildAreaApplyListResponse>(); } }
- public ApplyGuildFundResponse lastApplyGuildFundResponse { get { return _socket.GetLastResponse<ApplyGuildFundResponse>(); } }
- public ApplyFundResponse lastApplyFundResponse { get { return _socket.GetLastResponse<ApplyFundResponse>(); } }
- public ApplyCancelFundResponse lastApplyCancelFundResponse { get { return _socket.GetLastResponse<ApplyCancelFundResponse>(); } }
- public ApplyDailyAwardListResponse lastApplyDailyAwardListResponse { get { return _socket.GetLastResponse<ApplyDailyAwardListResponse>(); } }
- public ApplyDailyAwardResponse lastApplyDailyAwardResponse { get { return _socket.GetLastResponse<ApplyDailyAwardResponse>(); } }
- public ApplyAccessResponse lastApplyAccessResponse { get { return _socket.GetLastResponse<ApplyAccessResponse>(); } }
- public ApplyFortGuildInfoResponse lastApplyFortGuildInfoResponse { get { return _socket.GetLastResponse<ApplyFortGuildInfoResponse>(); } }
- public ApplyAllReportListResponse lastApplyAllReportListResponse { get { return _socket.GetLastResponse<ApplyAllReportListResponse>(); } }
- public ApplyReportDetailResponse lastApplyReportDetailResponse { get { return _socket.GetLastResponse<ApplyReportDetailResponse>(); } }
- public ApplyReportStatisticsResponse lastApplyReportStatisticsResponse { get { return _socket.GetLastResponse<ApplyReportStatisticsResponse>(); } }
- static GuildFortHandler()
- {
- EventTypes.RegistPushType("area.guildFortPush.onGuildFortPush", typeof(OnGuildFortPush));
- EventTypes.RegistPushType("area.guildFortPush.onGuildResultPush", typeof(OnGuildResultPush));
- EventTypes.RegistRequestType("area.guildFortHandler.getGuildAreaListRequest", typeof(GetGuildAreaListRequest), typeof(GetGuildAreaListResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.getGuildAreaDetailRequest", typeof(GetGuildAreaDetailRequest), typeof(GetGuildAreaDetailResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.getGuildAreaApplyListRequest", typeof(GetGuildAreaApplyListRequest), typeof(GetGuildAreaApplyListResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyGuildFundRequest", typeof(ApplyGuildFundRequest), typeof(ApplyGuildFundResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyFundRequest", typeof(ApplyFundRequest), typeof(ApplyFundResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyCancelFundRequest", typeof(ApplyCancelFundRequest), typeof(ApplyCancelFundResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyDailyAwardListRequest", typeof(ApplyDailyAwardListRequest), typeof(ApplyDailyAwardListResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyDailyAwardRequest", typeof(ApplyDailyAwardRequest), typeof(ApplyDailyAwardResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyAccessRequest", typeof(ApplyAccessRequest), typeof(ApplyAccessResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyFortGuildInfoRequest", typeof(ApplyFortGuildInfoRequest), typeof(ApplyFortGuildInfoResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyAllReportListRequest", typeof(ApplyAllReportListRequest), typeof(ApplyAllReportListResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyReportDetailRequest", typeof(ApplyReportDetailRequest), typeof(ApplyReportDetailResponse));
- EventTypes.RegistRequestType("area.guildFortHandler.applyReportStatisticsRequest", typeof(ApplyReportStatisticsRequest), typeof(ApplyReportStatisticsResponse));
- }
- public GuildFortHandler(PomeloClient socket)
- {
- this._socket = socket;
- }
- public void getGuildAreaListRequest(Action<PomeloException,GetGuildAreaListResponse> cb,object option = null)
- {
- var request = new GetGuildAreaListRequest();
- _socket.request<GetGuildAreaListResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as GetGuildAreaListResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void getGuildAreaDetailRequest(int areaId,Action<PomeloException,GetGuildAreaDetailResponse> cb,object option = null)
- {
- var request = new GetGuildAreaDetailRequest();
- request.areaId= areaId;
- _socket.request<GetGuildAreaDetailResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as GetGuildAreaDetailResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void getGuildAreaApplyListRequest(int areaId,Action<PomeloException,GetGuildAreaApplyListResponse> cb,object option = null)
- {
- var request = new GetGuildAreaApplyListRequest();
- request.areaId= areaId;
- _socket.request<GetGuildAreaApplyListResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as GetGuildAreaApplyListResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyGuildFundRequest(Action<PomeloException,ApplyGuildFundResponse> cb,object option = null)
- {
- var request = new ApplyGuildFundRequest();
- _socket.request<ApplyGuildFundResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyGuildFundResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyFundRequest(int areaId,int applyFund,Action<PomeloException,ApplyFundResponse> cb,object option = null)
- {
- var request = new ApplyFundRequest();
- request.areaId= areaId;
- request.applyFund= applyFund;
- _socket.request<ApplyFundResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyFundResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyCancelFundRequest(int areaId,Action<PomeloException,ApplyCancelFundResponse> cb,object option = null)
- {
- var request = new ApplyCancelFundRequest();
- request.areaId= areaId;
- _socket.request<ApplyCancelFundResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyCancelFundResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyDailyAwardListRequest(Action<PomeloException,ApplyDailyAwardListResponse> cb,object option = null)
- {
- var request = new ApplyDailyAwardListRequest();
- _socket.request<ApplyDailyAwardListResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyDailyAwardListResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyDailyAwardRequest(int areaId,Action<PomeloException,ApplyDailyAwardResponse> cb,object option = null)
- {
- var request = new ApplyDailyAwardRequest();
- request.areaId= areaId;
- _socket.request<ApplyDailyAwardResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyDailyAwardResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyAccessRequest(int areaId,Action<PomeloException,ApplyAccessResponse> cb,object option = null)
- {
- var request = new ApplyAccessRequest();
- request.areaId= areaId;
- _socket.request<ApplyAccessResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyAccessResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyFortGuildInfoRequest(Action<PomeloException,ApplyFortGuildInfoResponse> cb,object option = null)
- {
- var request = new ApplyFortGuildInfoRequest();
- _socket.request<ApplyFortGuildInfoResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyFortGuildInfoResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyAllReportListRequest(Action<PomeloException,ApplyAllReportListResponse> cb,object option = null)
- {
- var request = new ApplyAllReportListRequest();
- _socket.request<ApplyAllReportListResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyAllReportListResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyReportDetailRequest(string date,int areaId,Action<PomeloException,ApplyReportDetailResponse> cb,object option = null)
- {
- var request = new ApplyReportDetailRequest();
- request.date= date;
- request.areaId= areaId;
- _socket.request<ApplyReportDetailResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyReportDetailResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void applyReportStatisticsRequest(string date,int areaId,string guildId,Action<PomeloException,ApplyReportStatisticsResponse> cb,object option = null)
- {
- var request = new ApplyReportStatisticsRequest();
- request.date= date;
- request.areaId= areaId;
- request.guildId= guildId;
- _socket.request<ApplyReportStatisticsResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => {
- var rsp = msg as ApplyReportStatisticsResponse;
- s2c_code = rsp.s2c_code;
- s2c_msg = rsp.s2c_msg;
- return s2c_code == 200;
- }, cb, option);
- }
- public void onGuildFortPush(Action<OnGuildFortPush> cb)
- {
- _socket.listen_once<OnGuildFortPush>(cb);
- }
- public void onGuildResultPush(Action<OnGuildResultPush> cb)
- {
- _socket.listen_once<OnGuildResultPush>(cb);
- }
- }
- }
|