Code Cleanup: Assemblies

This commit is contained in:
Rick Falkvinge
2014-12-04 23:55:03 +01:00
parent 93abb92c67
commit fa3b05da6f
458 changed files with 13969 additions and 13709 deletions
+30 -33
View File
@@ -5,8 +5,23 @@ namespace Swarmops.Basic.Types
{
public class BasicPaymentCode : IHasIdentity
{
public BasicPaymentCode (int paymentCodeId, string paymentCode, string issuedToPhoneNumber, int issuedToPersonId,
bool claimed)
private readonly int issuedToPersonId;
private readonly string issuedToPhoneNumber;
private readonly string paymentCode;
private readonly int paymentCodeId;
private bool claimed;
#region IHasIdentity Members
public int Identity
{
get { return PaymentCodeId; }
}
#endregion
public BasicPaymentCode(int paymentCodeId, string paymentCode, string issuedToPhoneNumber, int issuedToPersonId,
bool claimed)
{
this.paymentCodeId = paymentCodeId;
this.paymentCode = paymentCode;
@@ -15,7 +30,7 @@ namespace Swarmops.Basic.Types
this.claimed = claimed;
}
public BasicPaymentCode (BasicPaymentCode original)
public BasicPaymentCode(BasicPaymentCode original)
: this(
original.paymentCodeId, original.paymentCode, original.issuedToPhoneNumber, original.issuedToPersonId,
original.claimed)
@@ -50,42 +65,24 @@ namespace Swarmops.Basic.Types
}
public PaymentCodeIssueType IssueType
{
get
{
if (this.issuedToPersonId == 0)
{
return PaymentCodeIssueType.Phone;
}
return PaymentCodeIssueType.Person;
}
}
protected void SetClaimed()
{
this.claimed = true;
}
public PaymentCodeIssueType IssueType
{
get
{
if (issuedToPersonId == 0)
{
return PaymentCodeIssueType.Phone;
}
else
{
return PaymentCodeIssueType.Person;
}
}
}
private int paymentCodeId;
private string paymentCode;
private string issuedToPhoneNumber;
private int issuedToPersonId;
private bool claimed;
//private bool balanced;
#region IHasIdentity Members
public int Identity
{
get { return this.PaymentCodeId; }
}
#endregion
}
}