-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae5822b
commit 77e397e
Showing
6 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<Configurations>Debug;Release;NoRewards</Configurations> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<DefineConstants>DEBUG</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='NoRewards|AnyCPU'"> | ||
<DefineConstants>DEBUG</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<AnalysisMode>AllEnabledByDefault</AnalysisMode> | ||
<Version>0.0.0</Version> | ||
<Authors>EliphasNUIT</Authors> | ||
<Company>GW2 Elite Insights</Company> | ||
<Product>GW2 Elite Insights</Product> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.IO; | ||
using System.Net; | ||
using System.Net.Http; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Serialization; | ||
|
||
[assembly: System.CLSCompliant(false)] | ||
namespace GW2EIWingman | ||
{ | ||
public static class WingmanController | ||
{ | ||
///////////////// URL Utilities | ||
|
||
private static string TestConnectionURL { get; } = "https://gw2wingman.nevermindcreations.de/testConnection"; | ||
|
||
private const string BaseAPIURL = "https://gw2wingman.nevermindcreations.de/api/"; | ||
private static string EIVersionURL { get; } = BaseAPIURL + "EIversion"; | ||
private static string ImportLogQueuedURL { get; } = BaseAPIURL + "importLogQueued"; | ||
private static string CheckLogQueuedURL { get; } = BaseAPIURL + "checkLogQueued"; | ||
private static string CheckLogQueuedOrDBURL { get; } = BaseAPIURL + "checkLogQueuedOrDB"; | ||
private static string CheckUploadURL { get; } = BaseAPIURL + "checkUpload"; | ||
private static string UploadProcessedURL { get; } = BaseAPIURL + "uploadProcessed"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace GW2EIWingman.WingmanUploadJsons | ||
{ | ||
public class CheckLogQueuedObject | ||
{ | ||
[JsonProperty] | ||
public string Link { get; internal set; } | ||
[JsonProperty] | ||
public string TargetURL { get; internal set; } | ||
[JsonProperty] | ||
public bool InQueue { get; internal set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
GW2EIWingman/WingmanUploadJsons/CheckLogQueuedOrDBObject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace GW2EIWingman.WingmanUploadJsons | ||
{ | ||
public class CheckLogQueuedOrDBObject : CheckLogQueuedObject | ||
{ | ||
[JsonProperty] | ||
public bool InDB { get; internal set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace GW2EIWingman.WingmanUploadJsons | ||
{ | ||
public class ImportLogQueuedObject | ||
{ | ||
[JsonProperty] | ||
public string Link { get; internal set; } | ||
[JsonProperty] | ||
public string Note { get; internal set; } | ||
[JsonProperty] | ||
public int Success { get; internal set; } | ||
} | ||
} |