using System.Threading.Tasks; using BossBase; namespace BossCommand { public class BCForbiddenAccountLogin: ABossCommand { public string Account { get; set; } public string ForbiddenLoginTime { get; set; } public BCForbiddenAccountLogin(IMessageChannel iMessageChannel): base(iMessageChannel) { } public override async Task DoAsync() { this.SendMessage(new CMSG_Boss_Gm { Message = string.Format("forbid_account {0} {1}", this.Account, this.ForbiddenLoginTime) }); var smsgBossCommandResponse = await RecvMessage(); return smsgBossCommandResponse.ErrorCode; } } }