public MetadataCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names, BoxType t) : base(boxPlatformBuilder, boxHome, names) { if (t == BoxType.file) { _subCommands = factory.CreateFactory(base._names.CommandNames.FileMetadata); } else if (t == BoxType.folder) { _subCommands = factory.CreateFactory(base._names.CommandNames.FolderMetadata); } }
public TaskCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names, BoxType t = BoxType.enterprise) : base(boxPlatformBuilder, boxHome, names) { _t = t; if (t == BoxType.file) { _subCommands = factory.CreateFactory(base._names.CommandNames.FileTask); } else { _subCommands = factory.CreateFactory(base._names.CommandNames.Task); } }
public CollaborationOnItemCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names, BoxType t = BoxType.enterprise) : base(boxPlatformBuilder, boxHome, names) { if (t == BoxType.file) { _subCommands = factory.CreateFactory(base._names.CommandNames.FileCollaborations); } else if (t == BoxType.folder) { _subCommands = factory.CreateFactory(base._names.CommandNames.FolderCollaborations); } else { throw new Exception("This item does not support collaborations."); } }
public TokenCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names) : base(boxPlatformBuilder, boxHome, names) { _subCommands = factory.CreateFactory(base._names.CommandNames.Token); }
public StoragePolicyCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names) : base(boxPlatformBuilder, boxHome, names) { _factory = factory; _subCommands = factory.CreateFactory(_names.CommandNames.StoragePolicy); }
public TaskAssignmentCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names) : base(boxPlatformBuilder, boxHome, names) { this._subCommands = factory.CreateFactory(base._names.CommandNames.TaskAssignment); }
public CollaborationCommand(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHome boxHome, SubCommandFactory factory, LocalizedStringsResource names, BoxType t = BoxType.enterprise) : base(boxPlatformBuilder, boxHome, names) { _subCommands = factory.CreateFactory(base._names.CommandNames.Collaborations); }