SyncAttributes
public struct SyncAttributes : FileUUID, Hashable
Attributes for a file being synced.
-
Declaration
Swift
public var fileUUID: UUIDString!
-
The sharing group or
album
to which a file belongs. A file will always be in the same sharing group. Specific sharingGroupUUID’s are generated by client’s.Declaration
Swift
public var sharingGroupUUID: String!
-
Declaration
Swift
public var mimeType: MimeType!
-
Supplied by the client (and only stored by the server, not used by the server otherwise). Used to indicate that a collection of files needs to be upload and downloaded as a group. Once a particular fileUUID is associated with a fileGroupUUID, it must always be associated with that fileGroupUUID. If not provided, then the file is a group of one and that fileUUID must always be a group of one (have a nil fileGroupUUID).
Declaration
Swift
public var fileGroupUUID: UUIDString?
-
These dates only get used for responses from the server– because it is the authority on dates.
Declaration
Swift
public var creationDate: Date?
-
Declaration
Swift
public var updateDate: Date?
-
Declaration
Swift
public var appMetaData: String?
-
Used primarily in responses from the server. If non-nil, indicates a file could not be synced, and indicates the reason. In that case, it’s up to the app using the SyncServer client interface to re-initiate the operation if appropriate (e.g., an upload or download) and/or to inform the user.
Declaration
Swift
public var gone: GoneReason?
-
Declaration
Swift
public init(fileUUID:UUIDString, sharingGroupUUID: String, mimeType:MimeType, fileGroupUUID: UUIDString? = nil, creationDate: Date? = nil, updateDate: Date? = nil)
-
Declaration
Swift
public var hashValue: Int { get }
-
Declaration
Swift
public static func == (lhs: SyncAttributes, rhs: SyncAttributes) -> Bool