-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c8d2a8
commit 1548860
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Twilio.Jwt.AccessToken | ||
{ | ||
/// <summary> | ||
/// Grant to expose Twilio Live | ||
/// </summary> | ||
public class PlaybackGrant : IGrant | ||
{ | ||
/// <summary> | ||
/// Grant payload | ||
/// </summary> | ||
public Dictionary<string, object> Grant { get; set; } | ||
|
||
/// <summary> | ||
/// Get the playback grant key | ||
/// </summary> | ||
/// | ||
/// <returns>the playback grant key</returns> | ||
public string Key | ||
{ | ||
get | ||
{ | ||
return "player"; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Get the playback grant payload | ||
/// </summary> | ||
/// | ||
/// <returns>the video grant payload</returns> | ||
public object Payload | ||
{ | ||
get | ||
{ | ||
return Grant; | ||
} | ||
} | ||
} | ||
} |
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