Esempio n. 1
0
        public void GetLicenseKeyTest()
        {
            string     key        = "11111-11111-11111-11111-11111";
            ClientWork clientWork = new ClientWork();
            string     resKey     = clientWork.GetLicenseKey();

            Assert.AreEqual(key, resKey);
        }
Esempio n. 2
0
 // Token: 0x060048CB RID: 18635 RVA: 0x001AFC20 File Offset: 0x001ADE20
 public static void setup()
 {
     if (Locale.supportedLanguages == null)
     {
         List <object> listByJsonPath  = ClientWork.getListByJsonPath("Server.langs", null);
         List <object> listByJsonPath2 = ClientWork.getListByJsonPath("Server.voices", null);
         if (listByJsonPath != null)
         {
             Locale.supportedLanguages = new List <string> {
                 "ja-JP"
             };
             Locale.supportedReadableLanguages = new List <string> {
                 "日本語(Japanese)"
             };
             Locale.setupLang(listByJsonPath, Locale.supportedLanguages, Locale.supportedReadableLanguages);
         }
         if (listByJsonPath2 != null)
         {
             Locale.supportedVoices = new List <string> {
                 "ja-JP"
             };
             Locale.supportedReadableVoices = new List <string> {
                 "日本語(Japanese)"
             };
             Locale.setupLang(listByJsonPath2, Locale.supportedVoices, Locale.supportedReadableVoices);
         }
         if (Locale.supportedLanguages == null || Locale.supportedLanguages.Count == 0)
         {
             Locale.supportedLanguages = new List <string>
             {
                 "en-US"
             };
             Locale.supportedReadableLanguages = new List <string>
             {
                 "English"
             };
         }
         if (Locale.supportedVoices == null || Locale.supportedVoices.Count == 0)
         {
             Locale.supportedVoices = new List <string>
             {
                 string.Empty
             };
             Locale.supportedReadableVoices = new List <string>
             {
                 "----"
             };
         }
     }
 }
Esempio n. 3
0
        public void RecordClientWork(Client c)
        {
            ClientWork w = new ClientWork();
            w.mTime = DateTime.UtcNow;
            w.mMemberName = c.mAgent;
            w.mProductName = c.mLocation;
            w.mHashes = c.mHashesDone;

            if (w.mMemberName == null || w.mMemberName.Length <= 0)
                w.mMemberName = "unknown";
            if (w.mProductName == null || w.mProductName.Length <= 0)
                w.mProductName = "unknown";

            mClientWorkQueueLock.WaitOne();
            mClientWorkQueue.Add(w);
            mClientWorkQueueLock.ReleaseMutex();
        }
Esempio n. 4
0
        public void RecordClientWork(Client c)
        {
            ClientWork w = new ClientWork();

            w.mTime        = DateTime.UtcNow;
            w.mMemberName  = c.mAgent;
            w.mProductName = c.mLocation;
            w.mHashes      = c.mHashesDone;

            if (w.mMemberName == null || w.mMemberName.Length <= 0)
            {
                w.mMemberName = "unknown";
            }
            if (w.mProductName == null || w.mProductName.Length <= 0)
            {
                w.mProductName = "unknown";
            }

            mClientWorkQueueLock.WaitOne();
            mClientWorkQueue.Add(w);
            mClientWorkQueueLock.ReleaseMutex();
        }
Esempio n. 5
0
 public SendMessageForm(ClientWork client = null)
 {
     InitializeComponent();
     this.client = client;
     this.Height = minHeight;
 }
 private void Start()
 {
     client = GameObject.FindGameObjectWithTag("ClientManager").GetComponent <ClientWork>();
 }
 private void detach_ClientWorks(ClientWork entity)
 {
     this.SendPropertyChanging("ClientWorks");
     entity.Client = null;
 }
 private void attach_ClientWorks(ClientWork entity)
 {
     this.SendPropertyChanging("ClientWorks");
     entity.Client = this;
 }