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