package com.uphold.uphold_android_sdk.model.card;

import java.io.Serializable;

/**
 * Card settings model.
 */

public class Settings implements Serializable {

    private final Integer position;
    private final Boolean starred;

    /**
     * Constructor.
     *
     * @param position The position of the card.
     * @param starred A boolean indicating if the card is starred.
     */

    public Settings(Integer position, Boolean starred) {
        this.position = position;
        this.starred = starred;
    }

    /**
     * Gets the position of the card.
     *
     * @return the position of the card
     */

    public Integer getPosition() {
        return position;
    }

    /**
     * Gets a boolean indicating if the card is starred.
     *
     * @return a boolean indicating if the card is starred
     */

    public Boolean getStarred() {
        return starred;
    }

}

@@ -44,16 +44,68 @@
 .card;%0A%0A
+import com.google.gson.annotations.SerializedName;%0A%0A
 import j
@@ -125,16 +125,16 @@
 izable;%0A
-
 %0A/**%0A * 
@@ -208,16 +208,88 @@
 able %7B%0A%0A
+    @SerializedName(%22protected%22)%0A    private final Boolean isProtected;%0A
     priv
@@ -565,24 +565,58 @@
  starred) %7B%0A
+        this.isProtected = false;%0A
         this
@@ -809,24 +809,24 @@
 osition() %7B%0A
-
         retu
@@ -837,32 +837,247 @@
 osition;%0A    %7D%0A%0A
+    /**%0A     * Gets a boolean indicating if the card is protected.%0A     *%0A     * @return a boolean indicating if the card is protected%0A     */%0A%0A    public Boolean getProtected() %7B%0A        return isProtected;%0A    %7D%0A%0A
     /**%0A     * G

Add protected field to Card Settings