| 12345678910111213141516171819202122232425 |
- 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<object> 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 this.RecvMessage<SMSG_Boss_Command_Response>();
- return smsgBossCommandResponse.ErrorCode;
- }
- }
- }
|