Lots of updates
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PWAPPv2.Source.DataObjects
|
||||
{
|
||||
class APICredentials
|
||||
{
|
||||
public string UserID;
|
||||
public string Password;
|
||||
public string PracticeId;
|
||||
public string APIid;
|
||||
|
||||
public APICredentials(Source.APIConfig config)
|
||||
{
|
||||
UserID = config.PWUserID;
|
||||
Password = config.PWPassword;
|
||||
PracticeId = config.PWPracticeID;
|
||||
APIid = config.PWApiID;
|
||||
}
|
||||
|
||||
public string BuildJsonBodyContents()
|
||||
{
|
||||
return "'UserID':'" + UserID + "'," +
|
||||
"'Password':'" + Password + "'," +
|
||||
"'PracticeId':'" + PracticeId + "'," +
|
||||
"'APIid':'" + APIid + "'";
|
||||
}
|
||||
|
||||
public string ToJsonString()
|
||||
{
|
||||
return "\"{" + BuildJsonBodyContents() + "}\"";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user