Java Skype类代码示例(javaskype类的典型用法代码示例)

本文整理汇总了Java中com.samczsun.skype4j.Skype的典型用法代码示例。如果您正苦于以下问题:Java Skype类的具体用法?Java Skype怎么用?Java Skype使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java Skype类代码示例(javaskype类的典型用法代码示例)

Skype类属于com.samczsun.skype4j包,在下文中一共展示了Skype类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: buildRegistrationObject

import com.samczsun.skype4j.Skype; //导入依赖的package包/类
protected JsonObject buildRegistrationObject() {
    JsonObject registrationObject = new JsonObject();
    registrationObject.add("id", "messagingService");
    registrationObject.add("type", "EndpointPresenceDoc");
    registrationObject.add("selfLink", "uri");
    JsonObject publicInfo = new JsonObject();
    publicInfo.add("capabilities", "video|audio");
    publicInfo.add("type", 1);
    publicInfo.add("skypeNameVersion", "skype.com");
    publicInfo.add("nodeInfo", "");
    publicInfo.add("version", Skype.VERSION);
    JsonObject privateInfo = new JsonObject();
    privateInfo.add("epname", "Skype4J");
    registrationObject.add("publicInfo", publicInfo);
    registrationObject.add("privateInfo", privateInfo);
    return registrationObject;
} 
开发者ID:samczsun,项目名称:Skype4J,代码行数:18,代码来源:SkypeImpl.java

示例2: load

import com.samczsun.skype4j.Skype; //导入依赖的package包/类
public void load() throws ConnectionException {
    String uuid = id.substring(3); // trims the string "28:"

    JsonObject root = Endpoints.AGENT_INFO.open(skype, uuid)
            .expect(200, "While fetching agent info")
            .as(JsonObject.class)
            .get();

    JsonArray descriptions = root.get("agentDescriptions").asArray();

    if (descriptions.size() > 1) {
        throw Skype.UNEXPECTED;
    }

    JsonObject object = descriptions.get(0).asObject();

    this.displayName = Utils.getString(object, "displayName");
    this.description = Utils.getString(object, "description");
    this.developer = Utils.getString(object, "developer");
    this.extra = Utils.getString(object, "extra");
    this.userTileSmallUrl = Utils.getString(object, "userTileSmallUrl");
    this.userTileMediumUrl = Utils.getString(object, "userTileMediumUrl");
    this.userTileLargeUrl = Utils.getString(object, "userTileLargeUrl");
    this.userTileExtraLargeUrl = Utils.getString(object, "userTileExtraLargeUrl");
    this.userTileStaticUrl = Utils.getString(object, "userTileStaticUrl");
    this.webpage = Utils.getString(object, "webpage");
    this.tos = Utils.getString(object, "tos");
    this.privacyStatement = Utils.getString(object, "privacyStatement");
    this.isTrusted = object.get("isTrusted").asBoolean();
    object.get("capabilities").asArray().iterator().forEachRemaining(value -> this.capabilities.add(value.asString()));
    object.get("supportedLocales").asArray().iterator().forEachRemaining(value -> this.supportedLocales.add(value.asString()));
    this.agentType = Utils.getString(object, "agentType");
    this.starRating = object.get("starRating").asDouble();
} 
开发者ID:samczsun,项目名称:Skype4J,代码行数:35,代码来源:BotInfoImpl.java

示例3: block

import com.samczsun.skype4j.Skype; //导入依赖的package包/类
@Override
public void block(boolean reportAbuse) throws ConnectionException {
    Endpoints.BLOCK_CONTACT
            .open(skype, this.username)
            .expect(201, "While unblocking contact")
            .put("reporterIp=127.0.0.1&uiVersion=" + Skype.VERSION + (reportAbuse ? "&reportAbuse=1" : ""));
    updateContactInfo();
} 
开发者ID:samczsun,项目名称:Skype4J,代码行数:9,代码来源:ContactImpl.java

示例4: SkypeEventDispatcher

import com.samczsun.skype4j.Skype; //导入依赖的package包/类
public SkypeEventDispatcher(Skype instance) {
    this.instance = instance;
} 
开发者ID:samczsun,项目名称:Skype4J,代码行数:4,代码来源:SkypeEventDispatcher.java

示例5: getClient

import com.samczsun.skype4j.Skype; //导入依赖的package包/类
@Override
public Skype getClient() {
    return this.skype;
} 
开发者ID:samczsun,项目名称:Skype4J,代码行数:5,代码来源:BotInfoImpl.java

示例6: getClient

import com.samczsun.skype4j.Skype; //导入依赖的package包/类
/**
 * Get the {@link Skype} instance associated with this chat
 *
 * @return The Skype instance
 */
Skype getClient(); 
开发者ID:samczsun,项目名称:Skype4J,代码行数:7,代码来源:ChatMessage.java

示例7: getClient

import com.samczsun.skype4j.Skype; //导入依赖的package包/类
Skype getClient(); 
开发者ID:samczsun,项目名称:Skype4J,代码行数:2,代码来源:BotInfo.java

本文标签属性:

示例:示例英语

代码:代码大全可复制

java:java面试题

Skype:skype是什么软件

上一篇:Java LinearGradient.setLocalMatrix方法代码示例
下一篇:12306回应假期涨价(12306涨价了吗)(12306回应假期涨价的问题,2021年假期车票会涨价吗)

为您推荐