﻿using System;

namespace MultiMiner.Xgminer
{
    //marked Serializable to allow deep cloning of CoinConfiguration
    [Serializable]
    public class MiningPool
    {
        public string Host { get; set; }
        public int Port { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public int Quota { get; set; } //see bfgminer README about quotas
    }
}

﻿using System;

namespace MultiMiner.Xgminer
{
    //marked Serializable to allow deep cloning of CoinConfiguration
    [Serializable]
    public class MiningPool
    {
        public MiningPool()
        {
            //set defaults
            Host = String.Empty;
            Username = String.Empty;
            Password = String.Empty;
        }

        public string Host { get; set; }
        public int Port { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public int Quota { get; set; } //see bfgminer README about quotas
    }
}

Set default values (to avoid null references for invalid user data)
Set default values (to avoid null references for invalid user data)
