| | |
| | | public double? remainingDays { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 到期日期 |
| | | /// </summary> |
| | | public string expiryDate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 授权日期 |
| | | /// </summary> |
| | | public string issueDate { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 项目名称 |
| | | /// </summary> |
| | | public string projectId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 授权类型 |
| | | /// </summary> |
| | | public string type { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 绑定MAC |
| | | /// </summary> |
| | | public string macAddress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 返回成功 |
| | | /// </summary> |
| | | /// <param name="_resMsg"></param> |
| | | /// <returns></returns> |
| | | public static AuthorizeFunRetEntity Success(string _resMsg, object _resData = null) |
| | | public static AuthorizeFunRetEntity Success(string _resMsg, AuthorizeFunRetEntity newFun) |
| | | { |
| | | return new AuthorizeFunRetEntity() |
| | | { |
| | | result = true, |
| | | resMsg = _resMsg, |
| | | resData = _resData |
| | | |
| | | expiryDate = newFun.expiryDate, |
| | | issueDate = newFun.issueDate, |
| | | macAddress = newFun.macAddress, |
| | | projectId = newFun.projectId, |
| | | type = newFun.type |
| | | }; |
| | | } |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="_resMsg"></param> |
| | | /// <returns></returns> |
| | | public static AuthorizeFunRetEntity Success(string _resMsg, double _remainingDays) |
| | | public static AuthorizeFunRetEntity Success(string _resMsg, double _remainingDays, AuthorizeFunRetEntity newFun) |
| | | { |
| | | return new AuthorizeFunRetEntity() |
| | | { |
| | | result = true, |
| | | resMsg = _resMsg, |
| | | remainingDays = _remainingDays |
| | | remainingDays = _remainingDays, |
| | | |
| | | expiryDate = newFun.expiryDate, |
| | | issueDate = newFun.issueDate, |
| | | macAddress = newFun.macAddress, |
| | | projectId = newFun.projectId, |
| | | type = newFun.type |
| | | }; |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="_resMsg"></param> |
| | | /// <returns></returns> |
| | | public static AuthorizeFunRetEntity Fail(string _resMsg, double _remainingDays) |
| | | public static AuthorizeFunRetEntity Fail(string _resMsg, double _remainingDays, AuthorizeFunRetEntity newFun) |
| | | { |
| | | return new AuthorizeFunRetEntity() |
| | | { |
| | | result = false, |
| | | resMsg = _resMsg, |
| | | remainingDays = _remainingDays |
| | | remainingDays = _remainingDays, |
| | | |
| | | expiryDate = newFun.expiryDate, |
| | | issueDate = newFun.issueDate, |
| | | macAddress = newFun.macAddress, |
| | | projectId = newFun.projectId, |
| | | type = newFun.type |
| | | }; |
| | | } |
| | | } |