コード例 #1
0
        public BotMachine CreateMachine(long UserId, Type InitialStateType)
        {
            KillMachine(UserId);
            BotMachine machine = Activator.CreateInstance(BotMachineType, UserId, Sender, InitialStateType, this) as BotMachine;

            Machines.Add(UserId, machine);
            return(machine);
        }
コード例 #2
0
ファイル: TestFirstState.cs プロジェクト: thunderquack/BotLib
 public TestFirstState(long UserId, BotMachine Machine) : base(UserId, Machine)
 {
 }
コード例 #3
0
 public MultipleCheckBoxButtonsState(long UserId, BotMachine Machine) : base(UserId, Machine)
 {
     CheckedOptions = new List <string>();
     GenerateMainButtonCommand();
 }
コード例 #4
0
 public MultipleButtonsState(long UserId, BotMachine Machine) : base(UserId, Machine)
 {
 }
コード例 #5
0
 protected TwoButtonsState(long UserId, BotMachine Machine) : base(UserId, Machine)
 {
 }