// Path: src/main/java/com/github/sheigutn/pushbullet/http/PostRequest.java
// public class PostRequest<TResult> extends EntityEnclosingRequest<TResult, HttpPost> {
// 
//     public PostRequest(String relativePath) {
//         super(relativePath);
//     }
// }
// 
// Path: src/main/java/com/github/sheigutn/pushbullet/items/push/sent/Push.java
// @Getter
// @Setter(AccessLevel.PROTECTED)
// @ToString(callSuper = true)
// @NoArgsConstructor(access = AccessLevel.PROTECTED)
// public class Push extends PushbulletObject implements Deletable, Dismissable {
// 
//     /**
//      * The type of the push
//      */
//     private PushType type;
// 
//     /**
//      * Whether the push has already been dimissed
//      */
//     private boolean dismissed;
// 
//     /**
//      * The direction the push was sent to
//      */
//     private Direction direction;
// 
//     /**
//      * The name of the sender
//      */
//     @SerializedName("sender_name")
//     private String senderName;
// 
//     /**
//      * The identity of the channel the push was sent to
//      */
//     @SerializedName("channel_iden")
//     private String channelIdentity;
// 
//     /**
//      * The client's identity
//      */
//     @SerializedName("client_iden")
//     private String clientIdentity;
// 
//     /**
//      * The identity of the device the push was sent to
//      */
//     @SerializedName("target_device_iden")
//     private String targetDeviceIdentity;
// 
//     /**
//      * The sender's identity
//      */
//     @SerializedName("sender_iden")
//     private String senderIdentity;
// 
//     /**
//      * The sender's email
//      */
//     @SerializedName("sender_email")
//     private String senderEmail;
// 
//     /**
//      * The sender's normalized email
//      */
//     @SerializedName("sender_email_normalized")
//     private String normalizedSenderEmail;
// 
//     /**
//      * The receiver's identity
//      */
//     @SerializedName("receiver_iden")
//     private String receiverIdentity;
// 
//     /**
//      * The receiver's email
//      */
//     @SerializedName("receiver_email")
//     private String receiverEmail;
// 
//     /**
//      * The receiver's normalized email
//      */
//     @SerializedName("receiver_email_normalized")
//     private String normalizedReceiverEmail;
// 
//     /**
//      * The list of awake apps the push was sent to when it was created
//      */
//     @SerializedName("awake_app_guids")
//     private List<String> awakeAppGuids;
// 
//     /**
//      * A unique identifier for the push, set by the client
//      */
//     private String guid;
// 
//     @Override
//     public void delete() {
//         if(!isActive()) return;
//         DeleteSpecificPushRequest deleteSpecificPushRequest = new DeleteSpecificPushRequest(getIdentity());
//         getPushbullet().executeRequest(deleteSpecificPushRequest);
//         setActive(false);
//     }
// 
//     /**
//      * Show the push again if it was already dismissed
//      */
//     public void show() {
//         if(!isDismissed()) return;
//         getPushbullet().executeRequest(new ChangePushDismissStatusRequest(getIdentity(), false));
//         setDismissed(false);
//     }
// 
//     @Override
//     public void dismiss() {
//         if(isDismissed()) return;
//         getPushbullet().executeRequest(new ChangePushDismissStatusRequest(getIdentity(), true));
//         setDismissed(true);
//     }
// 
//     /**
//      * Get the title of this push
//      * @return The title of this push
//      */
//     public String getTitle() {
//         return null;
//     }
// 
//     /**
//      * Get the body of this push
//      * @return The body of this push
//      */
//     public String getBody() {
//         return null;
//     }
// }
// 
// Path: src/main/java/com/github/sheigutn/pushbullet/http/Urls.java
// public class Urls {
// 
//     public static final String CHANNELS = "/channels";
//     public static final String GRANTS = "/grants";
//     public static final String PUSHES = "/pushes";
//     public static final String SUBSCRIPTIONS = "/subscriptions";
//     public static final String EVERYTHING = "/everything";
//     public static final String PHONEBOOK = "/permanents/phonebook_";
//     public static final String DEVICES = "/devices";
//     public static final String CONTACTS = "/contacts";
//     public static final String CLIENTS = "/clients";
//     public static final String CHATS = "/chats";
//     public static final String ACCOUNTS = "/accounts";
//     public static final String CURRENT_USER = "/users/me";
//     public static final String CHANNEL_INFO = "/channel-info";
//     public static final String UPLOAD_REQUEST = "/upload-request";
//     public static final String EPHEMERALS = "/ephemerals";
//     public static final String BLOCKS = "/blocks";
// }


import com.github.sheigutn.pushbullet.http.PostRequest;
import com.github.sheigutn.pushbullet.items.push.sent.Push;
import com.github.sheigutn.pushbullet.http.Urls;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import org.apache.http.client.methods.HttpPost;
package com.github.sheigutn.pushbullet.http.defaults.post;


public class ChangePushDismissStatusRequest extends PostRequest<Push> {

    @SerializedName("dismissed")
    private boolean dismiss;

    public ChangePushDismissStatusRequest(String pushIdentity, boolean dismiss) {
        super(Urls.PUSHES + "/" + pushIdentity);
        this.dismiss = dismiss;
    }

    @Override
// Path: src/main/java/com/github/sheigutn/pushbullet/http/PostRequest.java
// public class PostRequest<TResult> extends EntityEnclosingRequest<TResult, HttpPost> {
// 
//     public PostRequest(String relativePath) {
//         super(relativePath);
//     }
// }
// 
// Path: src/main/java/com/github/sheigutn/pushbullet/items/push/sent/Push.java
// @Getter
// @Setter(AccessLevel.PROTECTED)
// @ToString(callSuper = true)
// @NoArgsConstructor(access = AccessLevel.PROTECTED)
// public class Push extends PushbulletObject implements Deletable, Dismissable {
// 
//     /**
//      * The type of the push
//      */
//     private PushType type;
// 
//     /**
//      * Whether the push has already been dimissed
//      */
//     private boolean dismissed;
// 
//     /**
//      * The direction the push was sent to
//      */
//     private Direction direction;
// 
//     /**
//      * The name of the sender
//      */
//     @SerializedName("sender_name")
//     private String senderName;
// 
//     /**
//      * The identity of the channel the push was sent to
//      */
//     @SerializedName("channel_iden")
//     private String channelIdentity;
// 
//     /**
//      * The client's identity
//      */
//     @SerializedName("client_iden")
//     private String clientIdentity;
// 
//     /**
//      * The identity of the device the push was sent to
//      */
//     @SerializedName("target_device_iden")
//     private String targetDeviceIdentity;
// 
//     /**
//      * The sender's identity
//      */
//     @SerializedName("sender_iden")
//     private String senderIdentity;
// 
//     /**
//      * The sender's email
//      */
//     @SerializedName("sender_email")
//     private String senderEmail;
// 
//     /**
//      * The sender's normalized email
//      */
//     @SerializedName("sender_email_normalized")
//     private String normalizedSenderEmail;
// 
//     /**
//      * The receiver's identity
//      */
//     @SerializedName("receiver_iden")
//     private String receiverIdentity;
// 
//     /**
//      * The receiver's email
//      */
//     @SerializedName("receiver_email")
//     private String receiverEmail;
// 
//     /**
//      * The receiver's normalized email
//      */
//     @SerializedName("receiver_email_normalized")
//     private String normalizedReceiverEmail;
// 
//     /**
//      * The list of awake apps the push was sent to when it was created
//      */
//     @SerializedName("awake_app_guids")
//     private List<String> awakeAppGuids;
// 
//     /**
//      * A unique identifier for the push, set by the client
//      */
//     private String guid;
// 
//     @Override
//     public void delete() {
//         if(!isActive()) return;
//         DeleteSpecificPushRequest deleteSpecificPushRequest = new DeleteSpecificPushRequest(getIdentity());
//         getPushbullet().executeRequest(deleteSpecificPushRequest);
//         setActive(false);
//     }
// 
//     /**
//      * Show the push again if it was already dismissed
//      */
//     public void show() {
//         if(!isDismissed()) return;
//         getPushbullet().executeRequest(new ChangePushDismissStatusRequest(getIdentity(), false));
//         setDismissed(false);
//     }
// 
//     @Override
//     public void dismiss() {
//         if(isDismissed()) return;
//         getPushbullet().executeRequest(new ChangePushDismissStatusRequest(getIdentity(), true));
//         setDismissed(true);
//     }
// 
//     /**
//      * Get the title of this push
//      * @return The title of this push
//      */
//     public String getTitle() {
//         return null;
//     }
// 
//     /**
//      * Get the body of this push
//      * @return The body of this push
//      */
//     public String getBody() {
//         return null;
//     }
// }
// 
// Path: src/main/java/com/github/sheigutn/pushbullet/http/Urls.java
// public class Urls {
// 
//     public static final String CHANNELS = "/channels";
//     public static final String GRANTS = "/grants";
//     public static final String PUSHES = "/pushes";
//     public static final String SUBSCRIPTIONS = "/subscriptions";
//     public static final String EVERYTHING = "/everything";
//     public static final String PHONEBOOK = "/permanents/phonebook_";
//     public static final String DEVICES = "/devices";
//     public static final String CONTACTS = "/contacts";
//     public static final String CLIENTS = "/clients";
//     public static final String CHATS = "/chats";
//     public static final String ACCOUNTS = "/accounts";
//     public static final String CURRENT_USER = "/users/me";
//     public static final String CHANNEL_INFO = "/channel-info";
//     public static final String UPLOAD_REQUEST = "/upload-request";
//     public static final String EPHEMERALS = "/ephemerals";
//     public static final String BLOCKS = "/blocks";
// }


// Path: src/main/java/com/github/sheigutn/pushbullet/http/defaults/post/ChangePushDismissStatusRequest.java
import com.github.sheigutn.pushbullet.http.PostRequest;
import com.github.sheigutn.pushbullet.items.push.sent.Push;
import com.github.sheigutn.pushbullet.http.Urls;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import org.apache.http.client.methods.HttpPost;

package com.github.sheigutn.pushbullet.http.defaults.post;


public class ChangePushDismissStatusRequest extends PostRequest<Push> {

    @SerializedName("dismissed")
    private boolean dismiss;

    public ChangePushDismissStatusRequest(String pushIdentity, boolean dismiss) {
        super(Urls.PUSHES + "/" + pushIdentity);
        this.dismiss = dismiss;
    }

    @Override
    public void applyBody(Gson gson, HttpPost post) {