1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- /**
- * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */
- namespace OCP\Calendar\Resource;
- /**
- * Interface IResourceMetadata
- *
- * This interface provides keys for common metadata.
- * Resource Backends are not limited to this list and can provide
- * any metadata they want.
- *
- * @since 17.0.0
- */
- interface IResourceMetadata {
- /**
- * Type of resource
- *
- * Allowed values for this key include:
- * - projector
- * - tv
- * - vehicle
- * - other
- *
- * @since 17.0.0
- */
- public const RESOURCE_TYPE = '{http://nextcloud.com/ns}resource-type';
- /**
- * If resource is of type vehicle, this describes the type of vehicle
- *
- * Allowed values:
- * - bicycle
- * - scooter
- * - motorbike
- * - car
- * - plane
- * - helicopter
- * - other
- *
- * @since 17.0.0
- */
- public const VEHICLE_TYPE = '{http://nextcloud.com/ns}resource-vehicle-type';
- /**
- * Make of the vehicle
- *
- * @since 17.0.0
- */
- public const VEHICLE_MAKE = '{http://nextcloud.com/ns}resource-vehicle-make';
- /**
- * Model of the vehicle
- *
- * @since 17.0.0
- */
- public const VEHICLE_MODEL = '{http://nextcloud.com/ns}resource-vehicle-model';
- /**
- * Whether or not the car is electric
- *
- * use '1' for electric, '0' for non-electric
- *
- * @since 17.0.0
- */
- public const VEHICLE_IS_ELECTRIC = '{http://nextcloud.com/ns}resource-vehicle-is-electric';
- /**
- * Range of vehicle with a full tank
- *
- * @since 17.0.0
- */
- public const VEHICLE_RANGE = '{http://nextcloud.com/ns}resource-vehicle-range';
- /**
- * Seating capacity of the vehicle
- *
- * @since 17.0.0
- */
- public const VEHICLE_SEATING_CAPACITY = '{http://nextcloud.com/ns}resource-vehicle-seating-capacity';
- /**
- * Contact information about the person who is responsible to administer / maintain this resource
- * This key stores a textual description of name and possible ways to contact the person
- *
- * @since 17.0.0
- */
- public const CONTACT_PERSON = '{http://nextcloud.com/ns}resource-contact-person';
- /**
- * Link to the vcard of the contact person
- *
- * @since 17.0.0
- */
- public const CONTACT_PERSON_VCARD = '{http://nextcloud.com/ns}resource-contact-person-vcard';
- }
|