-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added: Global interface for RestApiClients - Added: StackToPath converter
- Loading branch information
1 parent
def7a07
commit eb6bb95
Showing
13 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
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,11 @@ | ||
{ | ||
"Version": 1, | ||
"ProjectMap": { | ||
"4cecc30f-e3f9-4f56-a435-b4523542338b": { | ||
"ProjectGuid": "4cecc30f-e3f9-4f56-a435-b4523542338b", | ||
"DisplayName": "RCoreSharp", | ||
"ColorIndex": 0 | ||
} | ||
}, | ||
"NextColorIndex": 1 | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
namespace AndreasReitberger.Core.Enums | ||
{ | ||
// https://github.com/sta/websocket-sharp/issues/219#issuecomment-453535816 | ||
public enum SslProtocolsHack | ||
{ | ||
Tls = 192, | ||
Tls11 = 768, | ||
Tls12 = 3072 | ||
} | ||
} |
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,35 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace AndreasReitberger.Core.Interfaces | ||
{ | ||
public interface IRestApiClient : INotifyPropertyChanged, IDisposable | ||
{ | ||
#region Properties | ||
|
||
public Guid Id { get; set; } | ||
|
||
#region Connection | ||
public string ServerAddress { get; set; } | ||
public bool IsSecure { get; set; } | ||
public bool LoginRequired { get; set; } | ||
public string API { get; set; } | ||
public int Port { get; set; } | ||
public bool IsOnline { get; set; } | ||
public bool IsConnecting { get; set; } | ||
public bool AuthenticationFailed { get; set; } | ||
public bool IsRefreshing { get; set; } | ||
#endregion | ||
|
||
#endregion | ||
|
||
#region Methods | ||
public Task CheckOnlineAsync(int Timeout = 10000); | ||
public Task CheckOnlineAsync(CancellationTokenSource cts); | ||
public bool CheckIfConfigurationHasChanged(object temp); | ||
public void CancelCurrentRequests(); | ||
#endregion | ||
} | ||
} |
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