Namespaceanpassungen
This commit is contained in:
@@ -5,19 +5,18 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Jugenddienst_Stunden.Models {
|
||||
class TokenData {
|
||||
public string token { get; set; }
|
||||
public string apiKey { get; set; }
|
||||
public string url { get; set; }
|
||||
public string operator_id { get; set; }
|
||||
namespace Jugenddienst_Stunden.Models;
|
||||
class TokenData {
|
||||
public string token { get; set; }
|
||||
public string apiKey { get; set; }
|
||||
public string url { get; set; }
|
||||
public string operator_id { get; set; }
|
||||
|
||||
public TokenData(string apiKey) {
|
||||
string dat = Encoding.UTF8.GetString(System.Convert.FromBase64String(apiKey));
|
||||
this.token = dat.Split('|')[1]; ;
|
||||
this.url = dat.Split('|')[2]; ;
|
||||
this.operator_id = dat.Split('|')[0]; ;
|
||||
this.apiKey = apiKey;
|
||||
}
|
||||
public TokenData(string apiKey) {
|
||||
string dat = Encoding.UTF8.GetString(System.Convert.FromBase64String(apiKey));
|
||||
this.token = dat.Split('|')[1]; ;
|
||||
this.url = dat.Split('|')[2]; ;
|
||||
this.operator_id = dat.Split('|')[0]; ;
|
||||
this.apiKey = apiKey;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user