org.walluck.oscar
Class Stat

java.lang.Object
  extended byorg.walluck.oscar.Stat

public class Stat
extends java.lang.Object

Stats are used for keeping track of when ads are viewed or clicked on. Currently, there are two known stat types: type 0x0001 indicates that an ad has been viewed type 0x0002 indicates that an ad has been clicked on

Version:
1.0
Author:
David Walluck

Constructor Summary
Stat(int type, int id)
          Create a new stat.
 
Method Summary
 int getCount()
          Get the value of count.
 int getId()
          Get the value of id.
 int getType()
          Get the value of type.
 void setCount(int count)
          Set the value of count.
 void setId(int id)
          Set the value of id.
 void setType(int type)
          Set the value of type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stat

public Stat(int type,
            int id)
Create a new stat.

Parameters:
type - the type of stat
id - the id of this stat
Method Detail

getType

public int getType()
Get the value of type.

Returns:
value of type.

setType

public void setType(int type)
Set the value of type.

Parameters:
type - Value to assign to type.

getId

public int getId()
Get the value of id.

Returns:
value of id.

setId

public void setId(int id)
Set the value of id.

Parameters:
id - Value to assign to id.

getCount

public int getCount()
Get the value of count.

Returns:
value of count.

setCount

public void setCount(int count)
Set the value of count.

Parameters:
count - Value to assign to count.