Skip to content

Instantly share code, notes, and snippets.

@krishnaanaril
Created October 5, 2018 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krishnaanaril/5e56889f072a2606c1da0646766501dc to your computer and use it in GitHub Desktop.
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.
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