mirror of
https://github.com/bitwarden/mobile
synced 2026-01-05 18:13:36 +00:00
30 lines
734 B
C#
30 lines
734 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Bit.App.Pages
|
|
{
|
|
public class SettingsPageListGroup : List<SettingsPageListItem>
|
|
{
|
|
public SettingsPageListGroup(List<SettingsPageListItem> groupItems, string name, bool doUpper = true,
|
|
bool first = false)
|
|
{
|
|
AddRange(groupItems);
|
|
if(string.IsNullOrWhiteSpace(name))
|
|
{
|
|
Name = "-";
|
|
}
|
|
else if(doUpper)
|
|
{
|
|
Name = name.ToUpperInvariant();
|
|
}
|
|
else
|
|
{
|
|
Name = name;
|
|
}
|
|
First = first;
|
|
}
|
|
|
|
public bool First { get; set; }
|
|
public string Name { get; set; }
|
|
}
|
|
}
|