mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 14:30:31 +00:00
37 lines
975 B
C#
37 lines
975 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SteamAuth
|
|
{
|
|
public class Confirmation
|
|
{
|
|
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
|
|
}
|
|
}
|
|
}
|