Example #1
0
 public object Clone()
 {
     MyTask task = new MyTask();
     if (this._taskItems != null)
     {
         task._taskItems = new ArrayList();
         for (int i = 0; i < this._taskItems.Count; i++)
         {
             TaskInfo info2 = (TaskInfo) this._taskItems[i];
             TaskInfo info = new TaskInfo(info2._param1, info2._param2, info2._param3, info2._param4, info2._param5);
             task._taskItems.Add(info);
         }
     }
     task._isRun = this._isRun;
     task._validClickCount = this._validClickCount;
     task._invalidClickCount = this._invalidClickCount;
     task._todayValidClickCount = this._todayValidClickCount;
     task._todayInvalidClickCount = this._todayInvalidClickCount;
     task._yesterdayValidClickCount = this._yesterdayValidClickCount;
     task._yesterdayInvalidClickCount = this._yesterdayInvalidClickCount;
     task._completedCount = this._completedCount;
     task._id = this._id;
     task._name = this._name;
     task._category = this._category;
     if (this._HourClicks != null)
     {
         task._HourClicks = new ArrayList(this._HourClicks);
     }
     if (this._AreaClicks != null)
     {
         task._AreaClicks = new ArrayList(this._AreaClicks);
     }
     task._totalDayClicks = this._totalDayClicks;
     task._note = this._note;
     task._publishTime = this._publishTime;
     return task;
 }
Example #2
0
 private void LoadTemplates()
 {
     int num = 0;
     try
     {
         XmlDocument document = new XmlDocument();
         document.Load("template.xml");
         foreach (XmlNode node2 in document.SelectSingleNode("root").ChildNodes)
         {
             if (node2.Name.Equals("tasks"))
             {
                 foreach (XmlNode node3 in node2.ChildNodes)
                 {
                     if (node3.Name.Equals("task"))
                     {
                         MyTask template = new MyTask();
                         foreach (XmlNode node4 in node3.ChildNodes)
                         {
                             if (node4.Name.Equals("name"))
                             {
                                 template.Name = node4.InnerText;
                             }
                             else
                             {
                                 if (node4.Name.Equals("category"))
                                 {
                                     template.Category = node4.InnerText;
                                     continue;
                                 }
                                 if (node4.Name.Equals("note"))
                                 {
                                     template.Note = node4.InnerText;
                                     continue;
                                 }
                                 if (node4.Name.Equals("taskinfo"))
                                 {
                                     string s = string.Empty;
                                     string innerText = string.Empty;
                                     string str3 = string.Empty;
                                     string str4 = string.Empty;
                                     string str5 = string.Empty;
                                     foreach (XmlNode node5 in node4)
                                     {
                                         if (node5.Name.Equals("param1"))
                                         {
                                             s = node5.InnerText;
                                         }
                                         else
                                         {
                                             if (node5.Name.Equals("param2"))
                                             {
                                                 innerText = node5.InnerText;
                                                 continue;
                                             }
                                             if (node5.Name.Equals("param3"))
                                             {
                                                 str3 = node5.InnerText;
                                                 continue;
                                             }
                                             if (node5.Name.Equals("param4"))
                                             {
                                                 str4 = node5.InnerText;
                                                 continue;
                                             }
                                             if (node5.Name.Equals("param5"))
                                             {
                                                 str5 = node5.InnerText;
                                             }
                                         }
                                     }
                                     if ((WindowUtil.StringToInt(s) > -1) && (WindowUtil.StringToInt(s) < 0x1d))
                                     {
                                         TaskInfo task = new TaskInfo(s, innerText, str3, str4, str5);
                                         template.Insert(task, -1);
                                     }
                                 }
                             }
                         }
                         if (template._taskItems.Count > 0)
                         {
                             this._engineManager.Add(template.Category, template);
                         }
                     }
                 }
                 continue;
             }
         }
     }
     catch (Exception)
     {
         num = -1;
     }
     if (num == 0)
     {
         foreach (EngineCaterogy caterogy in this._engineManager.Caterogy)
         {
             if (string.IsNullOrEmpty(caterogy.Name))
             {
                 this.listBoxTemplateCategory.Items.Add("未分类");
             }
             else
             {
                 this.listBoxTemplateCategory.Items.Add(caterogy.Name);
             }
         }
         this.ReloadTemplate(0);
     }
 }
Example #3
0
 public void Insert(TaskInfo task, int index = -1)
 {
     if (index == -1)
     {
         this._taskItems.Add(task);
     }
     else
     {
         this._taskItems.Insert(index, task);
     }
 }
Example #4
0
 private void buttonInsertWaitClick(object sender, EventArgs e)
 {
     string text = this.textBoxWaitTime.Text;
     if (!string.IsNullOrEmpty(text))
     {
         if (this._modifyTaskItemIndex == -1)
         {
             int num = 0;
             TaskInfo task = new TaskInfo(num.ToString(), text, "", "", "");
             this._task.Insert(task, this._curTaskIndex++);
         }
         else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
         {
             TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
             int num3 = 0;
             if (info2._param1.Equals(num3.ToString()))
             {
                 info2._param2 = text;
                 this._task._taskItems[this._modifyTaskItemIndex] = info2;
             }
             else
             {
                 int num4 = 0;
                 TaskInfo info3 = new TaskInfo(num4.ToString(), text, "", "", "");
                 this._task.Insert(info3, this._curTaskIndex++);
             }
         }
         this._modifyTaskItemIndex = -1;
         this.ReloadTask(false);
         this.SetTaskItem(TaskCommand.Task_None);
     }
 }
Example #5
0
 private void buttonInsertWebSiteClick(object sender, EventArgs e)
 {
     string str = this.textBoxWebSite.Text.Trim();
     string str2 = this.textBoxWebSiteRefer.Text.Trim();
     if (!string.IsNullOrEmpty(str))
     {
         if (!str.StartsWith("http://") && !str.StartsWith("https://"))
         {
             str = "http://" + str;
         }
         if ((!string.IsNullOrEmpty(str2) && !str2.StartsWith("http://")) && !str2.StartsWith("https://"))
         {
             str2 = "http://" + str2;
         }
         if (this._modifyTaskItemIndex == -1)
         {
             int num = 4;
             TaskInfo task = new TaskInfo(num.ToString(), str, str2, "", "");
             this._task.Insert(task, this._curTaskIndex++);
         }
         else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
         {
             TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
             int num3 = 4;
             if (info2._param1.Equals(num3.ToString()))
             {
                 info2._param2 = str;
                 info2._param3 = str2;
                 this._task._taskItems[this._modifyTaskItemIndex] = info2;
             }
             else
             {
                 int num4 = 4;
                 TaskInfo info3 = new TaskInfo(num4.ToString(), str, str2, "", "");
                 this._task.Insert(info3, this._curTaskIndex++);
             }
         }
         this._modifyTaskItemIndex = -1;
         this.ReloadTask(false);
         this.SetTaskItem(TaskCommand.Task_None);
     }
 }
Example #6
0
 private void buttonInsertInputTextClick(object sender, EventArgs e)
 {
     string str = this.textBoxInputBoxName.Text.Trim();
     string str2 = this.textBoxInputText.Text.Trim();
     ElementTag iD = ElementTag.ID;
     if (!string.IsNullOrEmpty(str) && !string.IsNullOrEmpty(str2))
     {
         if (this.textBoxInputBoxName.Tag != null)
         {
             iD = (ElementTag) this.textBoxInputBoxName.Tag;
             this.textBoxInputBoxName.Tag = null;
         }
         if (this._modifyTaskItemIndex == -1)
         {
             TaskInfo info;
             if (this._inputIndex == 0)
             {
                 int num = 1;
                 int num2 = (int) iD;
                 info = new TaskInfo(num.ToString(), str, str2, num2.ToString(), "");
             }
             else
             {
                 int num3 = 1;
                 int num4 = (int) iD;
                 info = new TaskInfo(num3.ToString(), str, str2, num4.ToString(), this._inputIndex.ToString());
             }
             this._task.Insert(info, this._curTaskIndex++);
         }
         else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
         {
             TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
             int num6 = 1;
             if (info2._param1.Equals(num6.ToString()))
             {
                 info2._param2 = str;
                 info2._param3 = str2;
                 info2._param4 = ((int) iD).ToString();
                 if (this._inputIndex == 0)
                 {
                     info2._param5 = "";
                 }
                 else
                 {
                     info2._param5 = this._inputIndex.ToString();
                 }
                 this._task._taskItems[this._modifyTaskItemIndex] = info2;
             }
             else
             {
                 TaskInfo info3;
                 if (this._inputIndex == 0)
                 {
                     int num8 = 1;
                     int num9 = (int) iD;
                     info3 = new TaskInfo(num8.ToString(), str, str2, num9.ToString(), "");
                 }
                 else
                 {
                     int num10 = 1;
                     int num11 = (int) iD;
                     info3 = new TaskInfo(num10.ToString(), str, str2, num11.ToString(), this._inputIndex.ToString());
                 }
                 this._task.Insert(info3, this._curTaskIndex++);
             }
         }
         this._inputIndex = 0;
         this._modifyTaskItemIndex = -1;
         this.ReloadTask(false);
         this.SetTaskItem(TaskCommand.Task_None);
     }
 }
Example #7
0
 private void buttonInsertPressKeyClick(object sender, EventArgs e)
 {
     if (this._modifyTaskItemIndex == -1)
     {
         int num = 10;
         TaskInfo task = new TaskInfo(num.ToString(), "", "", "", "");
         this._task.Insert(task, this._curTaskIndex++);
     }
     else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
     {
         TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
         int num3 = 10;
         if (!info2._param1.Equals(num3.ToString()))
         {
             int num4 = 10;
             TaskInfo info3 = new TaskInfo(num4.ToString(), "", "", "", "");
             this._task.Insert(info3, this._curTaskIndex++);
         }
     }
     this._modifyTaskItemIndex = -1;
     this.ReloadTask(false);
     this.SetTaskItem(TaskCommand.Task_None);
 }
Example #8
0
 private void buttonInsertDeepClickClick(object sender, EventArgs e)
 {
     string str = this.textBoxDeepClickTimes.Text.Trim();
     string str2 = this.textBoxDeepClickWaitTime.Text.Trim();
     string str3 = this.textBoxDeepClickText.Text.Trim();
     if ((!string.IsNullOrEmpty(str) && !string.IsNullOrEmpty(str2)) && (WindowUtil.StringToInt(str) != 0))
     {
         if (this._modifyTaskItemIndex == -1)
         {
             int num = 5;
             TaskInfo task = new TaskInfo(num.ToString(), str, str2, str3, "");
             this._task.Insert(task, this._curTaskIndex++);
         }
         else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
         {
             TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
             int num3 = 5;
             if (info2._param1.Equals(num3.ToString()))
             {
                 info2._param2 = str;
                 info2._param3 = str2;
                 info2._param4 = str3;
                 this._task._taskItems[this._modifyTaskItemIndex] = info2;
             }
             else
             {
                 int num4 = 5;
                 TaskInfo info3 = new TaskInfo(num4.ToString(), str, str2, str3, "");
                 this._task.Insert(info3, this._curTaskIndex++);
             }
         }
         this._modifyTaskItemIndex = -1;
         this.ReloadTask(false);
         this.SetTaskItem(TaskCommand.Task_None);
     }
 }
Example #9
0
        private void buttonInsertFindPageClick(object sender, EventArgs e)
        {
            string str;
            string str2 = this.textBoxFindPage.Text.Trim();
            string str3 = this.textBoxFindPageNext.Text.Trim();
            string str4 = this.textBoxFindMaxPage.Text.Trim();
            string str5 = this.textBoxFindKeyword.Text.Trim();
            ElementTag outerText = ElementTag.outerText;
            ElementTag tag = ElementTag.outerText;
            if (str5 == "")
            {
                str5 = string.Empty;
            }
            if ((string.IsNullOrEmpty(str2) || string.IsNullOrEmpty(str3)) || string.IsNullOrEmpty(str4))
            {
                return;
            }
            if (this.textBoxFindPage.Tag != null)
            {
                outerText = (ElementTag) this.textBoxFindPage.Tag;
            }
            if (this.textBoxFindPageNext.Tag != null)
            {
                tag = (ElementTag) this.textBoxFindPageNext.Tag;
            }
            this.textBoxFindPage.Tag = this.textBoxFindPageNext.Tag = null;
            TaskInfo task = null;
            if (this._modifyTaskItemIndex != -1)
            {
                if ((this._modifyTaskItemIndex < 0) || (this._modifyTaskItemIndex >= this._task._taskItems.Count))
                {
                    goto Label_0534;
                }
                task = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
                int num11 = 7;
                if (!task._param1.Equals(num11.ToString()))
                {
                    int num12 = 13;
                    if (!task._param1.Equals(num12.ToString()))
                    {
                        int num13 = 15;
                        if (!task._param1.Equals(num13.ToString()))
                        {
                            int num14 = 0x11;
                            if (!task._param1.Equals(num14.ToString()))
                            {
                                switch (outerText)
                                {
                                    case ElementTag.outerText:
                                        switch (tag)
                                        {
                                            case ElementTag.outerText:
                                                str = 7.ToString();
                                                goto Label_04C0;

                                            case ElementTag.href:
                                                str = 13.ToString();
                                                goto Label_04C0;
                                        }
                                        str = 0x13.ToString();
                                        goto Label_04C0;

                                    case ElementTag.href:
                                        switch (tag)
                                        {
                                            case ElementTag.outerText:
                                                str = 15.ToString();
                                                goto Label_04C0;

                                            case ElementTag.href:
                                                str = 0x11.ToString();
                                                goto Label_04C0;
                                        }
                                        str = 0x15.ToString();
                                        goto Label_04C0;
                                }
                                switch (tag)
                                {
                                    case ElementTag.outerText:
                                        str = 0x17.ToString();
                                        goto Label_04C0;

                                    case ElementTag.href:
                                        str = 0x19.ToString();
                                        goto Label_04C0;
                                }
                                str = 0x1b.ToString();
                                goto Label_04C0;
                            }
                        }
                    }
                }
                switch (outerText)
                {
                    case ElementTag.outerText:
                        switch (tag)
                        {
                            case ElementTag.outerText:
                                task._param1 = 7.ToString();
                                goto Label_0395;

                            case ElementTag.href:
                                task._param1 = 13.ToString();
                                goto Label_0395;
                        }
                        task._param1 = 0x13.ToString();
                        goto Label_0395;

                    case ElementTag.href:
                        switch (tag)
                        {
                            case ElementTag.outerText:
                                task._param1 = 15.ToString();
                                goto Label_0395;

                            case ElementTag.href:
                                task._param1 = 0x11.ToString();
                                goto Label_0395;
                        }
                        task._param1 = 0x15.ToString();
                        goto Label_0395;
                }
                switch (tag)
                {
                    case ElementTag.outerText:
                        task._param1 = 0x17.ToString();
                        goto Label_0395;

                    case ElementTag.href:
                        task._param1 = 0x19.ToString();
                        goto Label_0395;
                }
                task._param1 = 0x1b.ToString();
            }
            else
            {
                switch (outerText)
                {
                    case ElementTag.outerText:
                        switch (tag)
                        {
                            case ElementTag.outerText:
                                str = 7.ToString();
                                break;

                            case ElementTag.href:
                                str = 13.ToString();
                                break;
                        }
                        str = 0x13.ToString();
                        break;

                    case ElementTag.href:
                        switch (tag)
                        {
                            case ElementTag.outerText:
                                str = 15.ToString();
                                break;

                            case ElementTag.href:
                                str = 0x11.ToString();
                                break;
                        }
                        str = 0x15.ToString();
                        break;

                    default:
                        switch (tag)
                        {
                            case ElementTag.outerText:
                                str = 0x17.ToString();
                                break;

                            case ElementTag.href:
                                str = 0x19.ToString();
                                break;
                        }
                        str = 0x1b.ToString();
                        break;
                }
                task = new TaskInfo(str, str2, str3, string.Concat(new object[] { str4, ',', this._findLinkIndex.ToString(), ',', this._findNextIndex.ToString() }), str5);
                this._task.Insert(task, this._curTaskIndex++);
                goto Label_0534;
            }
            Label_0395:
            task._param2 = str2;
            task._param3 = str3;
            task._param4 = string.Concat(new object[] { str4, ',', this._findLinkIndex.ToString(), ',', this._findNextIndex.ToString() });
            task._param5 = str5;
            this._task._taskItems[this._modifyTaskItemIndex] = task;
            goto Label_0534;
            Label_04C0:;
            task = new TaskInfo(str, str2, str3, string.Concat(new object[] { str4, ',', this._findLinkIndex.ToString(), ',', this._findNextIndex.ToString() }), str5);
            this._task.Insert(task, this._curTaskIndex++);
            Label_0534:
            this._findLinkIndex = this._findNextIndex = 0;
            this._modifyTaskItemIndex = -1;
            this.ReloadTask(false);
            this.SetTaskItem(TaskCommand.Task_None);
        }
Example #10
0
 private void buttonInsertClickRadioClick(object sender, EventArgs e)
 {
     string str = this.textBoxRadioID.Text.Trim();
     ElementTag iD = ElementTag.ID;
     if (!string.IsNullOrEmpty(str))
     {
         TaskInfo info;
         if (this.textBoxRadioID.Tag != null)
         {
             iD = (ElementTag) this.textBoxRadioID.Tag;
             this.textBoxRadioID.Tag = null;
         }
         if (this._modifyTaskItemIndex == -1)
         {
             int num = 11;
             int num2 = (int) iD;
             info = new TaskInfo(num.ToString(), str, num2.ToString(), this._radioIndex.ToString(), "");
             this._task.Insert(info, this._curTaskIndex++);
         }
         else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
         {
             TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
             int num4 = 11;
             if (info2._param1.Equals(num4.ToString()))
             {
                 info2._param2 = str;
                 info2._param3 = ((int) iD).ToString();
                 info2._param4 = this._radioIndex.ToString();
                 this._task._taskItems[this._modifyTaskItemIndex] = info2;
             }
             else
             {
                 int num6 = 11;
                 int num7 = (int) iD;
                 info = new TaskInfo(num6.ToString(), str, num7.ToString(), this._radioIndex.ToString(), "");
                 this._task.Insert(info, this._curTaskIndex++);
             }
         }
         this._radioIndex = 0;
         this._modifyTaskItemIndex = -1;
         this.ReloadTask(false);
         this.SetTaskItem(TaskCommand.Task_None);
     }
 }
Example #11
0
 private void buttonInsertClickLinkClick(object sender, EventArgs e)
 {
     string str = this.textBoxLink.Text.Trim();
     string str2 = this.textBoxLinkKeyword.Text.Trim();
     ElementTag outerText = ElementTag.outerText;
     if (str2 == "")
     {
         str2 = string.Empty;
     }
     if (!string.IsNullOrEmpty(str))
     {
         if (this.textBoxLink.Tag != null)
         {
             outerText = (ElementTag) this.textBoxLink.Tag;
             this.textBoxLink.Tag = null;
         }
         if (this._modifyTaskItemIndex == -1)
         {
             int num = 3;
             int num2 = (int) outerText;
             TaskInfo task = new TaskInfo(num.ToString(), str, str2, num2.ToString(), this._linkIndex.ToString());
             this._task.Insert(task, this._curTaskIndex++);
         }
         else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
         {
             TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
             int num4 = 3;
             if (info2._param1.Equals(num4.ToString()))
             {
                 info2._param2 = str;
                 info2._param3 = str2;
                 info2._param4 = ((int) outerText).ToString();
                 info2._param5 = this._linkIndex.ToString();
                 this._task._taskItems[this._modifyTaskItemIndex] = info2;
             }
             else
             {
                 int num6 = 3;
                 int num7 = (int) outerText;
                 TaskInfo info3 = new TaskInfo(num6.ToString(), str, str2, num7.ToString(), this._linkIndex.ToString());
                 this._task.Insert(info3, this._curTaskIndex++);
             }
         }
         this._linkIndex = 0;
         this._modifyTaskItemIndex = -1;
         this.ReloadTask(false);
         this.SetTaskItem(TaskCommand.Task_None);
     }
 }
Example #12
0
 private void buttonInsertClearCookieClick(object sender, EventArgs e)
 {
     string str;
     if (this.radioButtonTempFile.Checked)
     {
         str = "8";
     }
     else if (this.radioButtonCookie.Checked)
     {
         str = "2";
     }
     else if (this.radioButtonPassword.Checked)
     {
         str = "48";
     }
     else if (this.radioButtonHistory.Checked)
     {
         str = "1";
     }
     else
     {
         str = "255";
     }
     if (this._modifyTaskItemIndex == -1)
     {
         int num = 6;
         TaskInfo task = new TaskInfo(num.ToString(), str, "", "", "");
         this._task.Insert(task, this._curTaskIndex++);
     }
     else if ((this._modifyTaskItemIndex >= 0) && (this._modifyTaskItemIndex < this._task._taskItems.Count))
     {
         TaskInfo info2 = (TaskInfo) this._task._taskItems[this._modifyTaskItemIndex];
         int num3 = 6;
         if (info2._param1.Equals(num3.ToString()))
         {
             info2._param2 = str;
             this._task._taskItems[this._modifyTaskItemIndex] = info2;
         }
         else
         {
             int num4 = 6;
             TaskInfo info3 = new TaskInfo(num4.ToString(), str, "", "", "");
             this._task.Insert(info3, this._curTaskIndex++);
         }
     }
     this._modifyTaskItemIndex = -1;
     this.ReloadTask(false);
     this.SetTaskItem(TaskCommand.Task_None);
 }
Example #13
0
 public void HandleMyTask(WorldPacket recvPacket)
 {
     if (recvPacket != null)
     {
         MyTask task = new MyTask {
             _id = recvPacket.ReadUInt32(),
             _publishTime = recvPacket.ReadUInt32(),
             _isRun = recvPacket.ReadUInt32() == 1
         };
         uint num = recvPacket.ReadUInt32();
         for (uint i = 0; i < num; i++)
         {
             string str = recvPacket.ReadString();
             string str2 = recvPacket.ReadString();
             string str3 = recvPacket.ReadString();
             string str4 = recvPacket.ReadString();
             string str5 = recvPacket.ReadString();
             TaskInfo info = new TaskInfo(str, str2, str3, str4, str5);
             task._taskItems.Add(info);
         }
         int num3 = recvPacket.ReadInt32();
         int num4 = recvPacket.ReadInt32();
         int num5 = 0;
         ArrayList areaClicks = new ArrayList();
         num5 = 0;
         while (num5 < 0x1f)
         {
             areaClicks.Add((num3 & (((int) 1) << num5)) != 0);
             num5++;
         }
         while (num5 < 0x23)
         {
             areaClicks.Add((num4 & (((int) 1) << (num5 - 0x1f))) != 0);
             num5++;
         }
         task.SetAreaClick(areaClicks);
         ArrayList hourClicks = new ArrayList();
         for (num5 = 0; num5 < 0x30; num5++)
         {
             uint num6 = recvPacket.ReadUInt32();
             hourClicks.Add(num6);
         }
         task.SetHourClick(hourClicks);
         task._validClickCount = recvPacket.ReadUInt32();
         task._invalidClickCount = recvPacket.ReadUInt32();
         task._todayValidClickCount = recvPacket.ReadUInt32();
         task._todayInvalidClickCount = recvPacket.ReadUInt32();
         task._yesterdayValidClickCount = recvPacket.ReadUInt32();
         task._yesterdayInvalidClickCount = recvPacket.ReadUInt32();
         task.Note = recvPacket.ReadString();
         this.AddTask(task);
         this.UpdateAccount();
     }
 }
Example #14
0
 public void HandleGetTask(WorldPacket recvPacket)
 {
     if (recvPacket != null)
     {
         MyTask task = new MyTask();
         if (recvPacket.ReadInt32() == 0)
         {
             task._id = recvPacket.ReadUInt32();
             uint num2 = recvPacket.ReadUInt32();
             for (uint i = 0; i < num2; i++)
             {
                 string str = recvPacket.ReadString();
                 string str2 = recvPacket.ReadString();
                 string str3 = recvPacket.ReadString();
                 string str4 = recvPacket.ReadString();
                 string str5 = recvPacket.ReadString();
                 TaskInfo info = new TaskInfo(str, str2, str3, str4, str5);
                 task._taskItems.Add(info);
             }
             this.addGetTask(task);
         }
     }
 }