tsk-#76: Saving AccessLevel when uploading song
This commit is contained in:
@@ -12,4 +12,22 @@ public class AccessLevel
|
||||
[Newtonsoft.Json.JsonProperty("song_id")]
|
||||
public int SongId { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
public static AccessLevel DefaultLevel()
|
||||
{
|
||||
return new AccessLevel
|
||||
{
|
||||
Level = "Public"
|
||||
};
|
||||
}
|
||||
|
||||
public static AccessLevel PrivateLevel()
|
||||
{
|
||||
return new AccessLevel
|
||||
{
|
||||
Level = "Private"
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user