コード例 #1
0
ファイル: SipMessage.java プロジェクト: imace/mbgapp
 /**
  * Get the way of the message is send by the user of the application
  *
  * @return true if message is sent by the user of the application
  */
 public boolean isOutgoing() {
   if (SipMessage.SELF.equalsIgnoreCase(from)) {
     return true;
   } else {
     return false;
   }
 }
コード例 #2
0
ファイル: SipMessage.java プロジェクト: imace/mbgapp
 /**
  * Get the number of the remote party.
  *
  * @return The remote party number
  */
 public String getRemoteNumber() {
   if (SipMessage.SELF.equalsIgnoreCase(from)) {
     return to;
   } else {
     return from;
   }
 }