Package net.solosky.maplefetion.sipc

Examples of net.solosky.maplefetion.sipc.SipcRequest


     * @throws TransferException
     */
    public void sendChatMessage(Buddy buddy, Message message, ActionEventListener listener)
    {
      this.ensureOpened();
      SipcRequest request  = this.getMessageFactory().createSendChatMessageRequest(buddy.getUri(), message);
      request.setResponseHandler(new SendChatMessageResponseHandler(context, this, listener));
      this.process(request);
    }
View Full Code Here


   * @throws Exception
   */
  public void agreedApplication(final Buddy buddy, final ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = this.getMessageFactory().createAgreeApplicationRequest(buddy.getUserId());
    request.setResponseHandler(new AgreeApplicationResponseHandler(context, this, listener));
    this.process(request);
  }
View Full Code Here

   * @return
   */
  public void declinedAppliction(Buddy buddy, ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = this.getMessageFactory().createDeclineApplicationRequest(buddy.getUserId());
    request.setResponseHandler(new DeclineApplicationResponseHandler(context, this, listener));
    this.process(request);
  }
View Full Code Here

   * @throws TransferException
   */
  public void deleteBuddy(Buddy buddy, ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = null;
    request = this.messageFactory.createDeleteBuddyRequest(buddy.getUserId());
    request.setResponseHandler(new DeleteBuddyResponseHandler(context, this, listener, buddy));
    this.process(request);
  }
View Full Code Here

   * @throws Exception
   */
  public void setPresence(int presence, ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = this.messageFactory.createSetPresenceRequest(presence);
    request.setResponseHandler(new SetPresenceResponseHandler(context, this, listener, presence));
    this.process(request);
  }
View Full Code Here

   * @param listener
   */
  public void setPesonalInfo(ActionEventListener listener)
  {
    this.ensureOpened();
        SipcRequest request = this.messageFactory.createSetPersonalInfoRequest();
        request.setResponseHandler(new DefaultResponseHandler(listener));
        this.process(request);
  }
View Full Code Here

   * @param listener 
   */
  public void setBuddyLocalName(Buddy buddy, String localName, ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = this.messageFactory.createSetBuddyLocalName(buddy.getUserId(), localName);
    request.setResponseHandler(new SetBuddyInfoResponseHandler(context, this, listener));
    this.process(request);
  }
View Full Code Here

        cordIds = cordIds.substring(0, cordIds.length()-1);
    }else {
      cordIds = ""//默认分组
    }
    this.ensureOpened();
    SipcRequest request = this.messageFactory.createSetBuddyCord(buddy.getUserId(), cordIds);
    request.setResponseHandler(new SetBuddyInfoResponseHandler(context, this, listener));
    this.process(request);
  }
View Full Code Here

   * @param listener
   */
  public void retireBuddyInfo(Buddy buddy, ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = this.messageFactory.createGetContactInfoRequest(buddy.getUri());
    request.setResponseHandler(new GetContactInfoResponseHandler(context, this, buddy, listener));
    this.process(request);
  }
View Full Code Here

   * @param listener
   */
  public void createCord(String title, ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = this.messageFactory.createCreateCordRequest(title);
    request.setResponseHandler(new CreateCordResponseHandler(context, this, listener));
    this.process(request);
  }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.sipc.SipcRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.