Esempio n. 1
0
 public ClientLimit()
 {
     if (_clients == null)
     {
         _clients = new ClientInfos();
     }
 }
        public RegistrationInfo GetRegistrationInfo(int clientId)
        {
            Client client = Clients.Where(c => c.Id == clientId).ToList()[0];
            ClientSoftwareProfile clientSoftwareProfile = ClientInfos.Where(i => i.Client.Id == client.Id).FirstOrDefault();
            RegistrationInfo      regInfo = new RegistrationInfo();

            regInfo.ClientId            = client.Id;
            regInfo.FirstRegisteredDate = (DateTime)client.DateRegistered;
            regInfo.RegisteredTo        = client.ClientName;

            return(regInfo);
        }
        public RegistrationInfo RegisterProduct(string productCode)
        {
            ClientSoftwareProfile clientSoftwareProfile = ClientInfos.Where(c => c.ProductCode == productCode).ToList()[0];
            Client client = Clients.Where(c => c.Id == clientSoftwareProfile.Client.Id).FirstOrDefault();

            RegistrationInfo regInfo = new RegistrationInfo();

            regInfo.ClientId            = client.Id;
            regInfo.FirstRegisteredDate = (DateTime)client.DateRegistered;
            regInfo.RegisteredTo        = client.ClientName;

            return(regInfo);
        }
Esempio n. 4
0
        public void Give_HypeSquad(string _HypeSquad, string _id)
        {
            string tokensu = token.Text;

            ClientInfos.GetInfos(tokensu);
            string nick = ClientInfos._Name;

            if (nick == null)
            {
                notifier.ShowError("Invalid Token");
            }
            else
            {
                Hype.GiveHypeSquad(tokensu, _id);
                notifier.ShowSuccess("Success, Given " + _HypeSquad + " To " + nick);
            }
        }
        public DateTime?GetRenewalDate(ClientInfo clientInfo)
        {
            ClientSoftwareProfile clientSoftwareProfile = ClientInfos.Where(i => i.Client.Id == clientInfo.ClientId).ToList()[0];

            return(clientSoftwareProfile.SubRenewalDate);
        }