WebDAVResource


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.26" ) ]
public WebDAVResource (WebDAVResourceKind kind, uint32 supports, string href, string? etag, string? display_name, string? content_type, size_t content_length, long creation_date, long last_modified, string? description, string? color, uint order)

Some values of the resource are not always valid, depending on the kind, but also whether server stores such values and whether it had been asked for them to be fetched.

The etag for COLLECTION can be a change tag instead.

Parameters:

kind

an WebDAVResourceKind of the resource

supports

bit-or of WebDAVResourceSupports values

href

href of the resource

etag

optional ETag of the resource, or null

display_name

optional display name of the resource, or null

content_type

optional Content-Type of the resource, or null

content_length

optional Content-Length of the resource, or 0

creation_date

optional date of creation of the resource, or 0

last_modified

optional last modified time of the resource, or 0

description

optional description of the resource, or null

color

optional color of the resource, or null

order

sort order of the resource, or (guint) -1

Returns:

A newly created WebDAVResource, prefilled with given values. Free it with webdav_resource_free, when no longer needed.