mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-05 09:46:17 +00:00
Removed guids from the model project
This commit is contained in:
@@ -122,50 +122,6 @@ namespace MediaBrowser.Model.Web
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified name.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <exception cref="System.ArgumentNullException">value</exception>
|
||||
public void Add(string name, Guid value)
|
||||
{
|
||||
if (value == Guid.Empty)
|
||||
{
|
||||
throw new ArgumentNullException("value");
|
||||
}
|
||||
|
||||
Add(name, value.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds if not empty.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="value">The value.</param>
|
||||
public void AddIfNotEmpty(string name, Guid value)
|
||||
{
|
||||
if (value != Guid.Empty)
|
||||
{
|
||||
Add(name, value);
|
||||
}
|
||||
|
||||
Add(name, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds if not null.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="value">The value.</param>
|
||||
public void AddIfNotNull(string name, Guid? value)
|
||||
{
|
||||
if (value.HasValue)
|
||||
{
|
||||
Add(name, value.Value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified name.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user