Auto updater added
This commit is contained in:
@@ -12,6 +12,12 @@ namespace PWAPPv2.Source.API
|
||||
private APIConnection BaseConnection;
|
||||
private APIConnection UpdateConnection;
|
||||
|
||||
private APIConnection AttachementConnection;
|
||||
private APIConnection ReferralConnection;
|
||||
private APIConnection ReferToConnection;
|
||||
private APIConnection ReferFromConnection;
|
||||
private APIConnection ReferTypesConnection;
|
||||
|
||||
private APICredentials Credentials;
|
||||
private string AppVersion;
|
||||
|
||||
@@ -20,6 +26,11 @@ namespace PWAPPv2.Source.API
|
||||
Credentials = new APICredentials(practiceConfig);
|
||||
BaseConnection = new APIConnection(universalConfig.Get("PWBaseURI"), Credentials);
|
||||
UpdateConnection = new APIConnection(universalConfig.Get("PWUpdateURI"), Credentials);
|
||||
AttachementConnection = new APIConnection(universalConfig.Get("PWAttachmentURI"), Credentials);
|
||||
ReferralConnection = new APIConnection(universalConfig.Get("PWReferralURI"), Credentials);
|
||||
ReferToConnection = new APIConnection(universalConfig.Get("PWReferToURI"), Credentials);
|
||||
ReferFromConnection = new APIConnection(universalConfig.Get("PWReferFromURI"), Credentials);
|
||||
ReferTypesConnection = new APIConnection(universalConfig.Get("PWReferTypesURI"), Credentials);
|
||||
|
||||
AppVersion = universalConfig.Get("PWAppVersion");
|
||||
|
||||
@@ -46,5 +57,25 @@ namespace PWAPPv2.Source.API
|
||||
return false;
|
||||
}
|
||||
|
||||
public string GetReferalTypes()
|
||||
{
|
||||
return ReferTypesConnection.SendPostWithCredsInHeader("", "");
|
||||
}
|
||||
|
||||
public string GetReferTo()
|
||||
{
|
||||
return ReferToConnection.SendPostWithCredsInHeader("", "");
|
||||
}
|
||||
|
||||
public string GetReferFrom()
|
||||
{
|
||||
return ReferFromConnection.SendPostWithCredsInHeader("", "");
|
||||
}
|
||||
|
||||
public string SendReferral(string JsonData)
|
||||
{
|
||||
return ReferralConnection.SendPostWithCredsInHeader("", JsonData);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user