protected CoalitionTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId) { this.type = inType; this.characterName = inCharacterName; this.characterId = inChracterId; time = CommonUtils.SecondsFrom1970(); }
public static CoalitionTransaction MakeTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId, string inTargetCharacterName, string inTargetCharacterId) { switch (inType) { case CoalitionTransactionType.make_officier: case CoalitionTransactionType.member_added: case CoalitionTransactionType.member_removed: return(new MemberActionCoalitionTransaction(inType, inCharacterName, inChracterId, inTargetCharacterName, inTargetCharacterId)); default: return(null); } }
public static CoalitionTransaction MakeTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId, int inCount) { switch (inType) { case CoalitionTransactionType.deposit: case CoalitionTransactionType.withdraw: case CoalitionTransactionType.set_poster: return(new CountCoalitionTransaction(inType, inCharacterName, inChracterId, inCount)); default: return(null); } }
public MemberActionCoalitionTransaction(CoalitionTransactionType inType, string inCharacterName, string inCharacterId, string inTargetCharacterName, string inTargetCharacterId) : base(inType, inCharacterName, inCharacterId) { targetCharacterId = inTargetCharacterId; targetCharacterName = inTargetCharacterName; }
public CountCoalitionTransaction(CoalitionTransactionType inType, string inCharacterName, string inChracterId, int inCount) : base(inType, inCharacterName, inChracterId) { count = inCount; }