| using System; |
| using System; |
| using System.Collections.Generic; |
| using System.Collections.Generic; |
| using System.Web.Script.Serialization; |
| using System.Web.Script.Serialization; |
| using Newtonsoft.Json; |
| using Newtonsoft.Json; |
| using ZionRobot.Models.ZFlow; |
| using ZionRobot.Models.ZFlow; |
| using ZionRobot.Persistence; |
| using ZionRobot.Persistence; |
| using ZionVault.WebService; |
| using ZionVault.WebService; |
| |
| |
| namespace ZionRobot.WebService |
| namespace ZionRobot.WebService |
| { |
| { |
| // Token: 0x0200001B RID: 27 |
| // Token: 0x02000012 RID: 18 |
| public class Lawsuit |
| public class Lawsuit |
| { |
| { |
| // Token: 0x0600009A RID: 154 RVA: 0x00005C10 File Offset: 0x00003E10 |
| // Token: 0x06000063 RID: 99 RVA: 0x00004C48 File Offset: 0x00002E48 |
| internal List<Lawsuit> LawsuitsToSync() |
| internal List<Lawsuit> LawsuitsToSync() |
| { |
| { |
| string result = new Client(WSProperties.UrlApi)._request("GET", WSProperties.LawsuitsToSync, WSProperties.Token, null, string.Empty, null); |
| string result = new Client(WSProperties.UrlApi)._request("GET", WSProperties.LawsuitsToSync, WSProperties.Token, null, string.Empty, null); |
| return JsonConvert.DeserializeObject<List<Lawsuit>>(result); |
| return JsonConvert.DeserializeObject<List<Lawsuit>>(result); |
| } |
| } |
| |
| |
| // Token: 0x0600009B RID: 155 RVA: 0x00005C50 File Offset: 0x00003E50 |
| // Token: 0x06000064 RID: 100 RVA: 0x00004C88 File Offset: 0x00002E88 |
| internal string UpdateUrl(Lawsuit lawsuit) |
| internal string UpdateUrl(Lawsuit lawsuit) |
| { |
| { |
| string a = new JavaScriptSerializer().Serialize(new |
| string a = new JavaScriptSerializer().Serialize(new |
| { |
| { |
| lawsuit |
| lawsuit |
| }); |
| }); |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateLawsuitLink, WSProperties.Token, null, a, null); |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateLawsuitLink, WSProperties.Token, null, a, null); |
| } |
| } |
| |
| |
| // Token: 0x0600009C RID: 156 RVA: 0x00005C94 File Offset: 0x00003E94 |
| // Token: 0x06000065 RID: 101 RVA: 0x00004CCC File Offset: 0x00002ECC |
| internal string UpdateSync(Lawsuit lawsuit, int status) |
| internal string UpdateSync(Lawsuit lawsuit, int status) |
| { |
| { |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateLawsuitSync, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| return new Client(WSProperties.UrlApi)._request("PUT", WSProperties.UpdateLawsuitSync, WSProperties.Token, null, new JavaScriptSerializer().Serialize(new |
| { |
| { |
. | EntityId = lawsuit.EntityId, |
| Entity_id = lawsuit.Entity_id, |
| ClientId = lawsuit.ClientId, |
| Client_id = lawsuit.Client_id, |
| FieldOfLawId = lawsuit.FieldOfLawId, |
| Field_of_law_id = lawsuit.Field_of_law_id, |
| Id = lawsuit.Id, |
| Id = lawsuit.Id, |
. | SyncId = lawsuit.SyncId, |
| Sync_id = lawsuit.Sync_id, |
| SyncStatus = status |
| SyncStatus = status |
| }), null); |
| }), null); |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| |