Extracted ooo-user bits into separate library.

This commit is contained in:
Michael Bayne
2011-10-05 09:37:10 -07:00
commit 1d78bbe27b
84 changed files with 12903 additions and 0 deletions
@@ -0,0 +1,45 @@
//
// $Id$
package com.threerings.user;
import java.sql.Date;
import com.samskivert.util.StringUtil;
/**
* An object representation of the persistent reward info stored in the {@link RewardRepository}
* REWARD_INFO table.
*/
public class RewardInfo
{
/** Unique reward id. */
public int rewardId;
/** Reward description. */
public String description;
/** A coupon code required to activate this reward or null. */
public String couponCode;
/** Game specific reward data. */
public String data;
/** Date when the reward expires. */
public Date expiration;
/** Max userid that can redeem this reward. */
public int maxEligibleId;
/** Number of activated rewards. */
public int activations;
/** Number of claimed rewards. */
public int redemptions;
@Override // from Object
public String toString ()
{
return StringUtil.fieldsToString(this);
}
}