Skip to content

Commit

Permalink
Fix: AddSoftware class, implement TrackDownloadsNew
Browse files Browse the repository at this point in the history
AddSoftwaer class was updated on the Backend
  • Loading branch information
rzander committed Sep 25, 2017
1 parent f2c5218 commit 7499a56
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions RZ.Cache/RZCache/RZRestProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,18 @@ public static async void TrackDownloads(string contentID)
catch { }
}

public static async void TrackDownloadsNew(string SWId, string Architecture)
{
try
{
var oClient = new HttpClient();
oClient.DefaultRequestHeaders.Add("AuthenticatedToken", Token);
oClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(contentType));
await oClient.GetStringAsync(sURL + "/rest/TrackDownloadsNew?SWId=" + SWId.ToString() + " & arch = " + WebUtility.UrlEncode(Architecture));
}
catch { }
}

public static string CheckForUpdate(string lSoftware)
{
string sResult = "";
Expand Down Expand Up @@ -859,6 +871,25 @@ public class AddSoftware
public string Category { get; set; }

public string[] PreRequisites { get; set; }

//vNext 5.9.2017
public long SWId { get { return IconId; } set { IconId = value; } }

//remove if SWId is in place 5.9.2017
public long IconId { get; set; }

public string IconURL
{
get
{
if (SWId > 0)
{
string URL = sURL + "/rest/GetIcon?id=" + SWId.ToString();
return URL;
}
return "";
}
}
}

public class contentFiles
Expand Down

0 comments on commit 7499a56

Please sign in to comment.