Skip to content

Commit

Permalink
add missing code blocks for maui in app update document (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrkYld authored Jan 7, 2025
1 parent 82286fb commit de57c94
Showing 1 changed file with 232 additions and 0 deletions.
232 changes: 232 additions & 0 deletions docs/enterprise-app-store/in-app-updates/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,64 @@ public static class InAppUpdateHelper {
}
`}
</CodeBlock>
<CodeBlock language="csharp">
{`
namespace MAUI_IN_APP.Models;

public class InAppUpdateModel
{
public class UpdateResult
{
public string DownloadUrl { get; set; }
public string Version { get; set; }
}
public class TokenResponse
{
public string access_token { get; set; }
}
public class AppVersion
{
public string Id { get; set; }
public string ProfileId { get; set; }
public string AppResourceReferenceId { get; set; }
public string AppIconResourceReferenceId { get; set; }
public string Name { get; set; }
public string UniqueName { get; set; }
public string SignedCertName { get; set; }
public string Version { get; set; }
public string VersionCode { get; set; }
public int PublishType { get; set; }
public DateTime? PublishDate { get; set; }
public string PublishDateStr { get; set; }
public int PlatformType { get; set; }
public string FileName { get; set; }
public long FileSize { get; set; }
public int DownloadCount { get; set; }
public string Summary { get; set; }
public string ReleaseNotes { get; set; }
public DateTime? LatestNotificationDate { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public string BuildId { get; set; }
public string AppIconUrl { get; set; }
public bool IsDownloadLimitExceeded { get; set; }
public int OrganizationDownloadCount { get; set; }
public int OrganizationDownloadLimit { get; set; }
}
public class AppVersionsResponse
{
public List<AppVersion> data { get; set; }
}

public enum PublishType
{
NotPublished = 0,
Beta,
Live,
}
}
`}
</CodeBlock>
</TabItem>
</Tabs>

Expand Down Expand Up @@ -511,6 +569,64 @@ public static class InAppUpdateHelper {
}
`}
</CodeBlock>
<CodeBlock language="csharp">
{`
namespace MAUI_IN_APP.Models;

public class InAppUpdateModel
{
public class UpdateResult
{
public string DownloadUrl { get; set; }
public string Version { get; set; }
}
public class TokenResponse
{
public string access_token { get; set; }
}
public class AppVersion
{
public string Id { get; set; }
public string ProfileId { get; set; }
public string AppResourceReferenceId { get; set; }
public string AppIconResourceReferenceId { get; set; }
public string Name { get; set; }
public string UniqueName { get; set; }
public string SignedCertName { get; set; }
public string Version { get; set; }
public string VersionCode { get; set; }
public int PublishType { get; set; }
public DateTime? PublishDate { get; set; }
public string PublishDateStr { get; set; }
public int PlatformType { get; set; }
public string FileName { get; set; }
public long FileSize { get; set; }
public int DownloadCount { get; set; }
public string Summary { get; set; }
public string ReleaseNotes { get; set; }
public DateTime? LatestNotificationDate { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public string BuildId { get; set; }
public string AppIconUrl { get; set; }
public bool IsDownloadLimitExceeded { get; set; }
public int OrganizationDownloadCount { get; set; }
public int OrganizationDownloadLimit { get; set; }
}
public class AppVersionsResponse
{
public List<AppVersion> data { get; set; }
}

public enum PublishType
{
NotPublished = 0,
Beta,
Live,
}
}
`}
</CodeBlock>
</TabItem>
</Tabs>

Expand Down Expand Up @@ -739,6 +855,64 @@ public static class InAppUpdateHelper {
}
`}
</CodeBlock>
<CodeBlock language="csharp">
{`
namespace MAUI_IN_APP.Models;

public class InAppUpdateModel
{
public class UpdateResult
{
public string DownloadUrl { get; set; }
public string Version { get; set; }
}
public class TokenResponse
{
public string access_token { get; set; }
}
public class AppVersion
{
public string Id { get; set; }
public string ProfileId { get; set; }
public string AppResourceReferenceId { get; set; }
public string AppIconResourceReferenceId { get; set; }
public string Name { get; set; }
public string UniqueName { get; set; }
public string SignedCertName { get; set; }
public string Version { get; set; }
public string VersionCode { get; set; }
public int PublishType { get; set; }
public DateTime? PublishDate { get; set; }
public string PublishDateStr { get; set; }
public int PlatformType { get; set; }
public string FileName { get; set; }
public long FileSize { get; set; }
public int DownloadCount { get; set; }
public string Summary { get; set; }
public string ReleaseNotes { get; set; }
public DateTime? LatestNotificationDate { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public string BuildId { get; set; }
public string AppIconUrl { get; set; }
public bool IsDownloadLimitExceeded { get; set; }
public int OrganizationDownloadCount { get; set; }
public int OrganizationDownloadLimit { get; set; }
}
public class AppVersionsResponse
{
public List<AppVersion> data { get; set; }
}

public enum PublishType
{
NotPublished = 0,
Beta,
Live,
}
}
`}
</CodeBlock>
</TabItem>
</Tabs>

Expand Down Expand Up @@ -976,6 +1150,64 @@ public static class InAppUpdateHelper {
}
`}
</CodeBlock>
<CodeBlock language="csharp">
{`
namespace MAUI_IN_APP.Models;

public class InAppUpdateModel
{
public class UpdateResult
{
public string DownloadUrl { get; set; }
public string Version { get; set; }
}
public class TokenResponse
{
public string access_token { get; set; }
}
public class AppVersion
{
public string Id { get; set; }
public string ProfileId { get; set; }
public string AppResourceReferenceId { get; set; }
public string AppIconResourceReferenceId { get; set; }
public string Name { get; set; }
public string UniqueName { get; set; }
public string SignedCertName { get; set; }
public string Version { get; set; }
public string VersionCode { get; set; }
public int PublishType { get; set; }
public DateTime? PublishDate { get; set; }
public string PublishDateStr { get; set; }
public int PlatformType { get; set; }
public string FileName { get; set; }
public long FileSize { get; set; }
public int DownloadCount { get; set; }
public string Summary { get; set; }
public string ReleaseNotes { get; set; }
public DateTime? LatestNotificationDate { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public string BuildId { get; set; }
public string AppIconUrl { get; set; }
public bool IsDownloadLimitExceeded { get; set; }
public int OrganizationDownloadCount { get; set; }
public int OrganizationDownloadLimit { get; set; }
}
public class AppVersionsResponse
{
public List<AppVersion> data { get; set; }
}

public enum PublishType
{
NotPublished = 0,
Beta,
Live,
}
}
`}
</CodeBlock>
</TabItem>
</Tabs>

Expand Down

0 comments on commit de57c94

Please sign in to comment.