コード例 #1
0
ファイル: StatsReceivers.cs プロジェクト: lancheng/PhoneStat
        static public PhoneCallState GetInstance()
        {
            if (offhookState == null)
            {
                offhookState = new PhoneCallOffhook();
            }

            return(offhookState);
        }
コード例 #2
0
ファイル: StatsReceivers.cs プロジェクト: lancheng/PhoneStat
 public PhoneCallState Offhook()
 {
     PhoneStatLog.GetInstance().LogPhone(DateTime.Now.ToString(), "0");
     return(PhoneCallOffhook.GetInstance());
 }
コード例 #3
0
ファイル: StatsReceivers.cs プロジェクト: lancheng/PhoneStat
 public PhoneCallState Offhook()
 {
     PhoneStatLog.GetInstance().LogPhone(DateTime.Now.ToString(), "2");
     //Log.Debug("X:" + typeof(PhoneCallReceiver).Name, "1: Incoming call answered.");
     return(PhoneCallOffhook.GetInstance());
 }
コード例 #4
0
ファイル: StatsReceivers.cs プロジェクト: lancheng/PhoneStat
 public PhoneCallState Offhook()
 {
     return(PhoneCallOffhook.GetInstance());
 }