Created
October 5, 2018 06:39
-
-
Save krishnaanaril/5e56889f072a2606c1da0646766501dc to your computer and use it in GitHub Desktop.
EmbedConfig is the class that is used to store the details of Power BI reports/dashboard that is to be embedded.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmbedConfig | |
{ | |
public string Id { get; set; } | |
public string EmbedUrl { get; set; } | |
public EmbedToken EmbedToken { get; set; } | |
public int MinutesToExpiration | |
{ | |
get | |
{ | |
var minutesToExpiration = EmbedToken.Expiration.Value - DateTime.UtcNow; | |
return minutesToExpiration.Minutes; | |
} | |
} | |
public bool? IsEffectiveIdentityRolesRequired { get; set; } | |
public bool? IsEffectiveIdentityRequired { get; set; } | |
public bool EnableRLS { get; set; } | |
public string Username { get; set; } | |
public string Roles { get; set; } | |
public string ErrorMessage { get; internal set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment