コード例 #1
0
 public InfoProcess()
 {
     CurrentState = MyInfoProcessState.Before;
     transitions  = new Dictionary <StateTransition, MyInfoProcessState>
     {
         { new StateTransition(MyInfoProcessState.Before, MyInfoProcessCommands.StartAll), MyInfoProcessState.GetCallLog },
     };
 }
コード例 #2
0
            public void MoveNext(MyInfoProcessCommands command)
            {
                MyInfoProcessState previewState = CurrentState;

                CurrentState = GetNext(command);
                if (this.MyRegistrationListener != null && previewState != CurrentState)
                {
                    // MyRegistrationListener.onMyRegistrationStateChanged(CurrentState);
                }
            }
コード例 #3
0
 public StateTransition(MyInfoProcessState currentState, MyInfoProcessCommands command)
 {
     CurrentState = currentState;
     Command      = command;
 }