BCForbiddenAccountLogin.cs 643 B

123456789101112131415161718192021222324
  1. using System.Threading.Tasks;
  2. using BossBase;
  3. namespace BossCommand
  4. {
  5. public class BCForbiddenAccountLogin: ABossCommand
  6. {
  7. public string Account { get; set; }
  8. public string ForbiddenLoginTime { get; set; }
  9. public BCForbiddenAccountLogin(IMessageChannel iMessageChannel): base(iMessageChannel)
  10. {
  11. }
  12. public override async Task<object> DoAsync()
  13. {
  14. this.SendMessage(new CMSG_Boss_Gm
  15. {
  16. Message = string.Format("forbid_account {0} {1}", this.Account, this.ForbiddenLoginTime)
  17. });
  18. var smsgBossCommandResponse = await RecvMessage<SMSG_Boss_Command_Response>();
  19. return smsgBossCommandResponse.ErrorCode;
  20. }
  21. }
  22. }