protected HttpBase(string name, SuccessCallBack success, FailedCallBack failure, bool needUI = true) { m_EventName = name; m_SuccessAction = success; m_FailureAction = failure; GameEntry.Event.Subscribe(WebRequestSuccessEventArgs.EventId, OnWebRequestSuccess); GameEntry.Event.Subscribe(WebRequestFailureEventArgs.EventId, OnWebRequestFailure); m_SerialId = needUI ? (int)GameEntry.UI.OpenUIForm(UIFormId.ConnectForm, this) : -1; }
public StudentSignInServer(int _sid, string _tel, int cdid, string cid, byte[] _photo, long _timestamp, SuccessCallBack success, FailedCallBack failure) : base(GlobalData.Server_StudentSigninTimestamp, success, failure) { m_HttpSendData = new StudentSignData(_sid, _timestamp, _tel); m_HttpByteData = _photo; m_HttpForm.Add("sid", _sid.ToString()); m_HttpForm.Add("tel", _tel); m_HttpForm.Add("timestamp", _timestamp.ToString()); m_HttpForm.Add("cdid", cdid.ToString()); m_HttpForm.Add("cid", cid); }
public GetDeviceWareInServer(int _id, SuccessCallBack success, FailedCallBack failure) : base(GlobalData.Server_GetDevicewareById, success, failure, false) { m_HttpSendData = new GetDeviceWareData(_id); }
public TeachSignInServer(int _teacher, string _tel, long _timestamp, int cdid, string cid, byte[] _photo, SuccessCallBack success, FailedCallBack failure) : base(GlobalData.Server_TeacherSigninTimestamp, success, failure) { m_HttpSendData = new TeachSignData(_teacher, _timestamp, _tel); m_HttpByteData = _photo; m_HttpForm.Add("teacher", _teacher.ToString()); m_HttpForm.Add("tel", _tel); m_HttpForm.Add("timestamp", _timestamp.ToString()); m_HttpForm.Add("cdid", cdid.ToString()); m_HttpForm.Add("cid", cid); }
public QueryCoursewareInServer(long _time, string _classesId, SuccessCallBack success, FailedCallBack failure) : base(GlobalData.Server_GetCoursewareDailyByClassestime, success, failure, false) { m_HttpSendData = new QueryCoursewareData(_time, _classesId); }
public LoginServer(string _facetoken, string _auid, int _flag, SuccessCallBack success, FailedCallBack failure) : base(GlobalData.Server_Getuserbyfacetoken, success, failure) { m_HttpSendData = new LoginData(_facetoken, _auid, _flag); }
public UpdateClassDailyEndtimeInServer(int _id, SuccessCallBack success, FailedCallBack failure) : base(GlobalData.Server_UpdateClassDailyEndtime, success, failure) { m_HttpSendData = new UpdateClassDailyEndtimeData(_id); }