本文整理汇总了Java中com.eveningoutpost.dexdrip.ShareModels.Models.InvitationPayload类的典型用法代码示例。如果您正苦于以下问题:Java InvitationPayload类的具体用法?Java InvitationPayload怎么用?Java InvitationPayload使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InvitationPayload类属于com.eveningoutpost.dexdrip.ShareModels.Models包,在下文中一共展示了InvitationPayload类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createInvitationForContact
import com.eveningoutpost.dexdrip.ShareModels.Models.InvitationPayload; //导入依赖的package包/类
public void createInvitationForContact(final String contactId, final InvitationPayload invitationPayload, Callback<String> callback) {
dexcomShareApi.createInvitationForContact(getSessionId(), contactId, invitationPayload).enqueue(new AuthenticatingCallback<String>(callback) {
@Override
public void onRetry() {
dexcomShareApi.createInvitationForContact(getSessionId(), contactId, invitationPayload).enqueue(this);
}
});
}
示例2: createInvitationForContact
import com.eveningoutpost.dexdrip.ShareModels.Models.InvitationPayload; //导入依赖的package包/类
public void createInvitationForContact(final String contactId, final InvitationPayload invitationPayload, Callback<String> callback) {
try {
dexcomShareApi.createInvitationForContact(getSessionId(), contactId, invitationPayload).enqueue(new AuthenticatingCallback<String>(callback) {
@Override
public void onRetry() {
dexcomShareApi.createInvitationForContact(getSessionId(), contactId, invitationPayload).enqueue(this);
}
});
} catch (ShareException e) {
callback.onFailure(e);
}
}
示例3: createInvitationForContact
import com.eveningoutpost.dexdrip.ShareModels.Models.InvitationPayload; //导入依赖的package包/类
@POST("Publisher/CreateSubscriptionInvitation")
Call<String> createInvitationForContact(@Query("sessionId") String sessionId,
@Query("contactId") String contactId,
@Body InvitationPayload body);