Skip to content

Instantly share code, notes, and snippets.

@brianium
Created March 16, 2012 21:07
Show Gist options
  • Save brianium/2052706 to your computer and use it in GitHub Desktop.
Save brianium/2052706 to your computer and use it in GitHub Desktop.
related model
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