1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System.Collections.Generic;
- using ET;
- namespace GFGGame
- {
- public static class RoleInfoSProxy
- {
- //请求个人信息
- public static async ETTask<bool> ReqPersonalInfo()
- {
- S2C_GetPersonalInfo response = null;
- response = (S2C_GetPersonalInfo)await MessageHelper.SendToServer(new C2S_GetPersonalInfo());
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- RoleDataManager.slogan = response.Signature;
- return true;
- }
- }
- return false;
- }
- //修改个人签名
- public static async ETTask<string> ReqModifySlogan(string slogan)
- {
- S2C_ModifySignature response = null;
- response = (S2C_ModifySignature)await MessageHelper.SendToServer(new C2S_ModifySignature() { Signature = slogan });
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- RoleDataManager.slogan = response.Signature;
- return RoleDataManager.slogan;
- }
- }
- return RoleDataManager.slogan;
- }
- }
- }
|