Created
March 16, 2012 21:07
-
-
Save brianium/2052706 to your computer and use it in GitHub Desktop.
related model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace DMSSubscriberUpdate.Domain | |
{ | |
public class Attempt | |
{ | |
public int ChannelID { get; set; } | |
public string TransactionID { get; set; } | |
public int Confirmed { get; set; } | |
public int Success { get; private set; } | |
public Attempt() | |
{ | |
Success = -1; | |
} | |
public void Succeed() | |
{ | |
Success = 1; | |
} | |
public void Fail() | |
{ | |
Success = 0; | |
} | |
public override string ToString() | |
{ | |
return string.Format("TransactionID={0}, Confirmed={1}, Success={2}", TransactionID, Confirmed, Success); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment