001package net.minecraft.client.mco;
002
003import argo.jdom.JdomParser;
004import argo.jdom.JsonRootNode;
005import argo.saj.InvalidSyntaxException;
006import cpw.mods.fml.relauncher.Side;
007import cpw.mods.fml.relauncher.SideOnly;
008import net.minecraft.util.ValueObject;
009
010@SideOnly(Side.CLIENT)
011public class ValueObjectSubscription extends ValueObject
012{
013    public long field_98171_a;
014    public int field_98170_b;
015
016    public static ValueObjectSubscription func_98169_a(String par0Str)
017    {
018        ValueObjectSubscription valueobjectsubscription = new ValueObjectSubscription();
019
020        try
021        {
022            JsonRootNode jsonrootnode = (new JdomParser()).parse(par0Str);
023            valueobjectsubscription.field_98171_a = Long.parseLong(jsonrootnode.getNumberValue(new Object[] {"startDate"}));
024            valueobjectsubscription.field_98170_b = Integer.parseInt(jsonrootnode.getNumberValue(new Object[] {"daysLeft"}));
025        }
026        catch (InvalidSyntaxException invalidsyntaxexception)
027        {
028            ;
029        }
030        catch (IllegalArgumentException illegalargumentexception)
031        {
032            ;
033        }
034
035        return valueobjectsubscription;
036    }
037}