com.evernote.edam.type
Class PremiumInfo

java.lang.Object
  extended by com.evernote.edam.type.PremiumInfo
All Implemented Interfaces:
com.evernote.thrift.TBase<PremiumInfo>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PremiumInfo>

public class PremiumInfo
extends java.lang.Object
implements com.evernote.thrift.TBase<PremiumInfo>, java.io.Serializable, java.lang.Cloneable

This structure is used to provide information about a user's Premium account.

currentTime
The server-side date and time when this data was generated.
premium
True if the user's account is Premium.
premiumRecurring
True if the user's account is Premium and has a recurring payment method.
premiumExpirationDate
The date when the user's Premium account expires, or the date when the user's account is due for payment if it has a recurring payment method.
premiumExtendable
True if the user is eligible for purchasing Premium account extensions.
premiumPending
True if the user's Premium account is pending payment confirmation
premiumCancellationPending
True if the user has requested that no further charges to be made; the Premium account will remain active until it expires.
canPurchaseUploadAllowance
True if the user is eligible for purchasing additional upload allowance.
sponsoredGroupName
The name of the sponsored group that the user is part of.
sponsoredGroupRole
DEPRECATED - will be removed in a future update.
premiumUpgradable
True if the user is eligible for purchasing Premium account upgrade.

See Also:
Serialized Form

Constructor Summary
PremiumInfo()
           
PremiumInfo(long currentTime, boolean premium, boolean premiumRecurring, boolean premiumExtendable, boolean premiumPending, boolean premiumCancellationPending, boolean canPurchaseUploadAllowance)
           
PremiumInfo(PremiumInfo other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(PremiumInfo other)
           
 PremiumInfo deepCopy()
          Creates a deep copy of the object.
 boolean equals(java.lang.Object that)
           
 boolean equals(PremiumInfo that)
           
 long getCurrentTime()
           
 long getPremiumExpirationDate()
           
 java.lang.String getSponsoredGroupName()
           
 SponsoredGroupRole getSponsoredGroupRole()
           
 int hashCode()
           
 boolean isCanPurchaseUploadAllowance()
           
 boolean isPremium()
           
 boolean isPremiumCancellationPending()
           
 boolean isPremiumExtendable()
           
 boolean isPremiumPending()
           
 boolean isPremiumRecurring()
           
 boolean isPremiumUpgradable()
           
 boolean isSetCanPurchaseUploadAllowance()
          Returns true if field canPurchaseUploadAllowance is set (has been asigned a value) and false otherwise
 boolean isSetCurrentTime()
          Returns true if field currentTime is set (has been asigned a value) and false otherwise
 boolean isSetPremium()
          Returns true if field premium is set (has been asigned a value) and false otherwise
 boolean isSetPremiumCancellationPending()
          Returns true if field premiumCancellationPending is set (has been asigned a value) and false otherwise
 boolean isSetPremiumExpirationDate()
          Returns true if field premiumExpirationDate is set (has been asigned a value) and false otherwise
 boolean isSetPremiumExtendable()
          Returns true if field premiumExtendable is set (has been asigned a value) and false otherwise
 boolean isSetPremiumPending()
          Returns true if field premiumPending is set (has been asigned a value) and false otherwise
 boolean isSetPremiumRecurring()
          Returns true if field premiumRecurring is set (has been asigned a value) and false otherwise
 boolean isSetPremiumUpgradable()
          Returns true if field premiumUpgradable is set (has been asigned a value) and false otherwise
 boolean isSetSponsoredGroupName()
          Returns true if field sponsoredGroupName is set (has been asigned a value) and false otherwise
 boolean isSetSponsoredGroupRole()
          Returns true if field sponsoredGroupRole is set (has been asigned a value) and false otherwise
 void read(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 void setCanPurchaseUploadAllowance(boolean canPurchaseUploadAllowance)
           
 void setCanPurchaseUploadAllowanceIsSet(boolean value)
           
 void setCurrentTime(long currentTime)
           
 void setCurrentTimeIsSet(boolean value)
           
 void setPremium(boolean premium)
           
 void setPremiumCancellationPending(boolean premiumCancellationPending)
           
 void setPremiumCancellationPendingIsSet(boolean value)
           
 void setPremiumExpirationDate(long premiumExpirationDate)
           
 void setPremiumExpirationDateIsSet(boolean value)
           
 void setPremiumExtendable(boolean premiumExtendable)
           
 void setPremiumExtendableIsSet(boolean value)
           
 void setPremiumIsSet(boolean value)
           
 void setPremiumPending(boolean premiumPending)
           
 void setPremiumPendingIsSet(boolean value)
           
 void setPremiumRecurring(boolean premiumRecurring)
           
 void setPremiumRecurringIsSet(boolean value)
           
 void setPremiumUpgradable(boolean premiumUpgradable)
           
 void setPremiumUpgradableIsSet(boolean value)
           
 void setSponsoredGroupName(java.lang.String sponsoredGroupName)
           
 void setSponsoredGroupNameIsSet(boolean value)
           
 void setSponsoredGroupRole(SponsoredGroupRole sponsoredGroupRole)
           
 void setSponsoredGroupRoleIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetCanPurchaseUploadAllowance()
           
 void unsetCurrentTime()
           
 void unsetPremium()
           
 void unsetPremiumCancellationPending()
           
 void unsetPremiumExpirationDate()
           
 void unsetPremiumExtendable()
           
 void unsetPremiumPending()
           
 void unsetPremiumRecurring()
           
 void unsetPremiumUpgradable()
           
 void unsetSponsoredGroupName()
           
 void unsetSponsoredGroupRole()
           
 void validate()
           
 void write(com.evernote.thrift.protocol.TProtocol oprot)
          Writes the object to the given protocol.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PremiumInfo

public PremiumInfo()

PremiumInfo

public PremiumInfo(long currentTime,
                   boolean premium,
                   boolean premiumRecurring,
                   boolean premiumExtendable,
                   boolean premiumPending,
                   boolean premiumCancellationPending,
                   boolean canPurchaseUploadAllowance)

PremiumInfo

public PremiumInfo(PremiumInfo other)
Performs a deep copy on other.

Method Detail

deepCopy

public PremiumInfo deepCopy()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<PremiumInfo>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<PremiumInfo>

getCurrentTime

public long getCurrentTime()

setCurrentTime

public void setCurrentTime(long currentTime)

unsetCurrentTime

public void unsetCurrentTime()

isSetCurrentTime

public boolean isSetCurrentTime()
Returns true if field currentTime is set (has been asigned a value) and false otherwise


setCurrentTimeIsSet

public void setCurrentTimeIsSet(boolean value)

isPremium

public boolean isPremium()

setPremium

public void setPremium(boolean premium)

unsetPremium

public void unsetPremium()

isSetPremium

public boolean isSetPremium()
Returns true if field premium is set (has been asigned a value) and false otherwise


setPremiumIsSet

public void setPremiumIsSet(boolean value)

isPremiumRecurring

public boolean isPremiumRecurring()

setPremiumRecurring

public void setPremiumRecurring(boolean premiumRecurring)

unsetPremiumRecurring

public void unsetPremiumRecurring()

isSetPremiumRecurring

public boolean isSetPremiumRecurring()
Returns true if field premiumRecurring is set (has been asigned a value) and false otherwise


setPremiumRecurringIsSet

public void setPremiumRecurringIsSet(boolean value)

getPremiumExpirationDate

public long getPremiumExpirationDate()

setPremiumExpirationDate

public void setPremiumExpirationDate(long premiumExpirationDate)

unsetPremiumExpirationDate

public void unsetPremiumExpirationDate()

isSetPremiumExpirationDate

public boolean isSetPremiumExpirationDate()
Returns true if field premiumExpirationDate is set (has been asigned a value) and false otherwise


setPremiumExpirationDateIsSet

public void setPremiumExpirationDateIsSet(boolean value)

isPremiumExtendable

public boolean isPremiumExtendable()

setPremiumExtendable

public void setPremiumExtendable(boolean premiumExtendable)

unsetPremiumExtendable

public void unsetPremiumExtendable()

isSetPremiumExtendable

public boolean isSetPremiumExtendable()
Returns true if field premiumExtendable is set (has been asigned a value) and false otherwise


setPremiumExtendableIsSet

public void setPremiumExtendableIsSet(boolean value)

isPremiumPending

public boolean isPremiumPending()

setPremiumPending

public void setPremiumPending(boolean premiumPending)

unsetPremiumPending

public void unsetPremiumPending()

isSetPremiumPending

public boolean isSetPremiumPending()
Returns true if field premiumPending is set (has been asigned a value) and false otherwise


setPremiumPendingIsSet

public void setPremiumPendingIsSet(boolean value)

isPremiumCancellationPending

public boolean isPremiumCancellationPending()

setPremiumCancellationPending

public void setPremiumCancellationPending(boolean premiumCancellationPending)

unsetPremiumCancellationPending

public void unsetPremiumCancellationPending()

isSetPremiumCancellationPending

public boolean isSetPremiumCancellationPending()
Returns true if field premiumCancellationPending is set (has been asigned a value) and false otherwise


setPremiumCancellationPendingIsSet

public void setPremiumCancellationPendingIsSet(boolean value)

isCanPurchaseUploadAllowance

public boolean isCanPurchaseUploadAllowance()

setCanPurchaseUploadAllowance

public void setCanPurchaseUploadAllowance(boolean canPurchaseUploadAllowance)

unsetCanPurchaseUploadAllowance

public void unsetCanPurchaseUploadAllowance()

isSetCanPurchaseUploadAllowance

public boolean isSetCanPurchaseUploadAllowance()
Returns true if field canPurchaseUploadAllowance is set (has been asigned a value) and false otherwise


setCanPurchaseUploadAllowanceIsSet

public void setCanPurchaseUploadAllowanceIsSet(boolean value)

getSponsoredGroupName

public java.lang.String getSponsoredGroupName()

setSponsoredGroupName

public void setSponsoredGroupName(java.lang.String sponsoredGroupName)

unsetSponsoredGroupName

public void unsetSponsoredGroupName()

isSetSponsoredGroupName

public boolean isSetSponsoredGroupName()
Returns true if field sponsoredGroupName is set (has been asigned a value) and false otherwise


setSponsoredGroupNameIsSet

public void setSponsoredGroupNameIsSet(boolean value)

getSponsoredGroupRole

public SponsoredGroupRole getSponsoredGroupRole()
See Also:
SponsoredGroupRole

setSponsoredGroupRole

public void setSponsoredGroupRole(SponsoredGroupRole sponsoredGroupRole)
See Also:
SponsoredGroupRole

unsetSponsoredGroupRole

public void unsetSponsoredGroupRole()

isSetSponsoredGroupRole

public boolean isSetSponsoredGroupRole()
Returns true if field sponsoredGroupRole is set (has been asigned a value) and false otherwise


setSponsoredGroupRoleIsSet

public void setSponsoredGroupRoleIsSet(boolean value)

isPremiumUpgradable

public boolean isPremiumUpgradable()

setPremiumUpgradable

public void setPremiumUpgradable(boolean premiumUpgradable)

unsetPremiumUpgradable

public void unsetPremiumUpgradable()

isSetPremiumUpgradable

public boolean isSetPremiumUpgradable()
Returns true if field premiumUpgradable is set (has been asigned a value) and false otherwise


setPremiumUpgradableIsSet

public void setPremiumUpgradableIsSet(boolean value)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(PremiumInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(PremiumInfo other)
Specified by:
compareTo in interface java.lang.Comparable<PremiumInfo>

read

public void read(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<PremiumInfo>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<PremiumInfo>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException