com.evernote.edam.notestore
Class AdImpressions

java.lang.Object
  extended by com.evernote.edam.notestore.AdImpressions
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class AdImpressions
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Information for tracking the display of a particular ad by a client.

adId
The identifier for this ad, from a previous Ad.id given to the client
impressionCount
The number of times this ad was displayed since the last successful ad retrieval. The client should only report times the ad was selected when the client was visible.
impressionTime
The number of seconds that the client displayed the advertisement since the last successful ad retrieval. This corresponds to the seconds that the client application was visible.

See Also:
Serialized Form

Nested Class Summary
static class AdImpressions._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<AdImpressions._Fields,FieldMetaData> metaDataMap
           
 
Constructor Summary
AdImpressions()
           
AdImpressions(AdImpressions other)
          Performs a deep copy on other.
AdImpressions(int adId, int impressionCount, int impressionTime)
           
 
Method Summary
 void clear()
           
 int compareTo(AdImpressions other)
           
 AdImpressions deepCopy()
           
 boolean equals(AdImpressions that)
           
 boolean equals(java.lang.Object that)
           
 AdImpressions._Fields fieldForId(int fieldId)
           
 int getAdId()
           
 java.lang.Object getFieldValue(AdImpressions._Fields field)
           
 int getImpressionCount()
           
 int getImpressionTime()
           
 int hashCode()
           
 boolean isSet(AdImpressions._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetAdId()
          Returns true if field adId is set (has been asigned a value) and false otherwise
 boolean isSetImpressionCount()
          Returns true if field impressionCount is set (has been asigned a value) and false otherwise
 boolean isSetImpressionTime()
          Returns true if field impressionTime is set (has been asigned a value) and false otherwise
 void read(TProtocol iprot)
           
 void setAdId(int adId)
           
 void setAdIdIsSet(boolean value)
           
 void setFieldValue(AdImpressions._Fields field, java.lang.Object value)
           
 void setImpressionCount(int impressionCount)
           
 void setImpressionCountIsSet(boolean value)
           
 void setImpressionTime(int impressionTime)
           
 void setImpressionTimeIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetAdId()
           
 void unsetImpressionCount()
           
 void unsetImpressionTime()
           
 void validate()
           
 void write(TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<AdImpressions._Fields,FieldMetaData> metaDataMap
Constructor Detail

AdImpressions

public AdImpressions()

AdImpressions

public AdImpressions(int adId,
                     int impressionCount,
                     int impressionTime)

AdImpressions

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

Method Detail

deepCopy

public AdImpressions deepCopy()

clear

public void clear()

getAdId

public int getAdId()

setAdId

public void setAdId(int adId)

unsetAdId

public void unsetAdId()

isSetAdId

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


setAdIdIsSet

public void setAdIdIsSet(boolean value)

getImpressionCount

public int getImpressionCount()

setImpressionCount

public void setImpressionCount(int impressionCount)

unsetImpressionCount

public void unsetImpressionCount()

isSetImpressionCount

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


setImpressionCountIsSet

public void setImpressionCountIsSet(boolean value)

getImpressionTime

public int getImpressionTime()

setImpressionTime

public void setImpressionTime(int impressionTime)

unsetImpressionTime

public void unsetImpressionTime()

isSetImpressionTime

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


setImpressionTimeIsSet

public void setImpressionTimeIsSet(boolean value)

setFieldValue

public void setFieldValue(AdImpressions._Fields field,
                          java.lang.Object value)

getFieldValue

public java.lang.Object getFieldValue(AdImpressions._Fields field)

isSet

public boolean isSet(AdImpressions._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise


equals

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

equals

public boolean equals(AdImpressions that)

hashCode

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

compareTo

public int compareTo(AdImpressions other)

fieldForId

public AdImpressions._Fields fieldForId(int fieldId)

read

public void read(TProtocol iprot)
          throws TException
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Throws:
TException

toString

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

validate

public void validate()
              throws TException
Throws:
TException