using System; using Shared.Common; namespace Shared.Phone.Device.CommonForm { public class CommonFormResouce { /// /// 字体12 /// public const int loginTextSize = 12; /// /// 占位字体大小 /// 12 /// public const int PlaceHolderTextSize = 12; /// /// Row_Height /// public const int Row_Height = 138; /// /// Row_Width /// public const int Row_Width = 884; /// /// Row_X /// public const int Row_X = 29; /// /// 距离左边的距离 /// public const int X_Left = 58; /// /// BigFormRadius /// public const int BigFormRadius = 17; /// /// 高度 184 /// public const int TopFrameLayout_Height = 184; /// /// topview 状态栏高度 60 /// public const int TopStatuFrameLayout_Height = 60; /// /// topview 状态栏高度 124 /// public const int Topview_Height = 124; /// /// 标题大小 17 /// public const int TopTitle_TextSize = 17; /// /// 标题宽度 1080 - 500 /// public const int TopTitle_Width = 1080 - 500; /// /// 发送验证码 /// /// /// public static async System.Threading.Tasks.Task LoginSendVerCode(SendDataToServer.LoginSendVerCodeObj loginSendVerCodeObj) { try { var requestRevertObj = await CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/LoginSendVerCode", System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(loginSendVerCodeObj))); return requestRevertObj; } catch { return null; } } /// /// 验证码登录 /// /// /// public static async System.Threading.Tasks.Task LoginByCode(SendDataToServer.LoginValidCodeOBJ loginValidCodeOBJ) { try { var requestRevertObj = await CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/LoginValidCode", System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(loginValidCodeOBJ))); return requestRevertObj; } catch { return null; } } /// /// 注册发送验证码 /// /// /// public static async System.Threading.Tasks.Task RegisterSendVerCode(SendDataToServer.RegisterSendVerCodeObj registerAccountObj) { try { var requestRevertObj = await CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/RegisterSendVerCode", System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(registerAccountObj))); return requestRevertObj; } catch { return null; } } /// /// 注册 /// /// /// public static async System.Threading.Tasks.Task Register(SendDataToServer.RegisterAccountObj registerAccountObj) { try { var requestRevertObj = await CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/ValidataCodeAndRegisterAccount", System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(registerAccountObj))); return requestRevertObj; } catch { return null; } } /// /// 重置密码 /// /// /// public static async System.Threading.Tasks.Task ResetPassword(SendDataToServer.ResetPasswordObj resetPasswordObj) { try { var requestRevertObj = await CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/ResetPassword", System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(resetPasswordObj))); return requestRevertObj; } catch { return null; } } /// /// 验证验证码 /// /// /// public static async System.Threading.Tasks.Task ValidatorCode(SendDataToServer.ValidatorCodeObj validatorCodeObj) { try { var requestRevertObj = await CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/ValidatorCode", System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(validatorCodeObj))); return requestRevertObj; } catch { return null; } } } public enum Direction { Left=1, Right=2 } }