
com.github.sheigutn.pushbullet.http.defaults.post.SubscribeToChannelRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pushbullet-java-8 Show documentation
Show all versions of pushbullet-java-8 Show documentation
Pushbullet Library for Java 8
The newest version!
package com.github.sheigutn.pushbullet.http.defaults.post;
import com.github.sheigutn.pushbullet.http.PostRequest;
import com.github.sheigutn.pushbullet.http.Urls;
import com.github.sheigutn.pushbullet.items.channel.Subscription;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import org.apache.http.client.methods.HttpPost;
@Data
public class SubscribeToChannelRequest extends PostRequest {
@SerializedName("channel_tag")
private String channelTag;
public SubscribeToChannelRequest(String channelTag) {
super(Urls.SUBSCRIPTIONS);
this.channelTag = channelTag;
}
@Override
public void applyBody(Gson gson, HttpPost post) {
setJsonBody(gson.toJson(this), post);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy