// 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/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/items/user/CurrentUser.java
// @Getter
// @ToString(callSuper = true)
// @NoArgsConstructor(access = AccessLevel.PRIVATE)
// public class CurrentUser extends User {
// 
//     /**
//      * The google user info of this user
//      */
//     @SerializedName("google_userinfo")
//     private GoogleUserInfo googleUserInfo;
// 
//     /**
//      * The preferences of this user
//      */
//     private JsonObject preferences;
// 
//     /**
//      * The maximum allowed upload size for files allowed to this user
//      */
//     @SerializedName("max_upload_size")
//     private long maxUploadSize;
// 
//     /**
//      * Used to update the preferences of this user
//      * @param preferences The preferences object
//      */
//     public void updatePreferences(JsonObject preferences) {
//         getPushbullet().executeRequest(new UpdatePreferencesRequest(preferences));
//         this.preferences = preferences;
//     }
// 
//     @Override
//     public void block() {
//         throw new UnsupportedOperationException();
//     }
// 
//     @Getter
//     public class GoogleUserInfo {
// 
//         /**
//          * The google name of this user
//          */
//         private String name;
//     }
// }


import com.github.sheigutn.pushbullet.http.PostRequest;
import com.github.sheigutn.pushbullet.http.Urls;
import com.github.sheigutn.pushbullet.items.user.CurrentUser;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import lombok.Data;
import org.apache.http.client.methods.HttpPost;
package com.github.sheigutn.pushbullet.http.defaults.post;


@Data
public class UpdatePreferencesRequest extends PostRequest<CurrentUser> {

    private JsonObject preferences;

    public UpdatePreferencesRequest(JsonObject preferences) {
        super(Urls.CURRENT_USER);
        this.preferences = preferences;
    }

// 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/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/items/user/CurrentUser.java
// @Getter
// @ToString(callSuper = true)
// @NoArgsConstructor(access = AccessLevel.PRIVATE)
// public class CurrentUser extends User {
// 
//     /**
//      * The google user info of this user
//      */
//     @SerializedName("google_userinfo")
//     private GoogleUserInfo googleUserInfo;
// 
//     /**
//      * The preferences of this user
//      */
//     private JsonObject preferences;
// 
//     /**
//      * The maximum allowed upload size for files allowed to this user
//      */
//     @SerializedName("max_upload_size")
//     private long maxUploadSize;
// 
//     /**
//      * Used to update the preferences of this user
//      * @param preferences The preferences object
//      */
//     public void updatePreferences(JsonObject preferences) {
//         getPushbullet().executeRequest(new UpdatePreferencesRequest(preferences));
//         this.preferences = preferences;
//     }
// 
//     @Override
//     public void block() {
//         throw new UnsupportedOperationException();
//     }
// 
//     @Getter
//     public class GoogleUserInfo {
// 
//         /**
//          * The google name of this user
//          */
//         private String name;
//     }
// }


// Path: src/main/java/com/github/sheigutn/pushbullet/http/defaults/post/UpdatePreferencesRequest.java
import com.github.sheigutn.pushbullet.http.PostRequest;
import com.github.sheigutn.pushbullet.http.Urls;
import com.github.sheigutn.pushbullet.items.user.CurrentUser;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import lombok.Data;
import org.apache.http.client.methods.HttpPost;

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


@Data
public class UpdatePreferencesRequest extends PostRequest<CurrentUser> {

    private JsonObject preferences;

    public UpdatePreferencesRequest(JsonObject preferences) {
        super(Urls.CURRENT_USER);
        this.preferences = preferences;
    }

    @Override