2015-12-11 22:53:28 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SteamAuth
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Confirmation
|
|
|
|
|
|
{
|
2016-03-10 21:11:54 +01:00
|
|
|
|
public string ID;
|
|
|
|
|
|
public string Key;
|
|
|
|
|
|
public string Description;
|
|
|
|
|
|
|
|
|
|
|
|
public ConfirmationType ConfType
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (String.IsNullOrEmpty(Description)) return ConfirmationType.Unknown;
|
|
|
|
|
|
if (Description.StartsWith("Confirm ")) return ConfirmationType.GenericConfirmation;
|
|
|
|
|
|
if (Description.StartsWith("Trade with ")) return ConfirmationType.Trade;
|
|
|
|
|
|
if (Description.StartsWith("Sell -")) return ConfirmationType.MarketSellTransaction;
|
|
|
|
|
|
|
|
|
|
|
|
return ConfirmationType.Unknown;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum ConfirmationType
|
|
|
|
|
|
{
|
|
|
|
|
|
GenericConfirmation,
|
|
|
|
|
|
Trade,
|
|
|
|
|
|
MarketSellTransaction,
|
|
|
|
|
|
Unknown
|
|
|
|
|
|
}
|
2015-12-11 22:53:28 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|