ShareRequest

data class ShareRequest(val requestUri: String, val requesterWebId: String, val resourceUri: String, val requestedMode: ShareMode, val summary: String?, val publishedAt: String?) : Parcelable

Inbox notification representing a request from another agent asking the current user (the resource owner) to grant access.

Emitted on the owner's LDN inbox by another agent's NotificationsManager.sendRequest(...). The owner reviews the request and either:

  • accepts it via SharingManager.acceptShareRequest(request) — grants access and sends an as:Offer back to the requester;

  • rejects it via SharingManager.rejectShareRequest(request, reason) — posts an as:Reject to the requester's inbox.

Both choices leave the request resource in the inbox.

Constructors

Link copied to clipboard
constructor(requestUri: String, requesterWebId: String, resourceUri: String, requestedMode: ShareMode, summary: String?, publishedAt: String?)

Properties

Link copied to clipboard

as:published timestamp string, if present.

Link copied to clipboard

Mode the requester is asking for (solidshare:requestedMode).

Link copied to clipboard

WebID of the requester (as:actor).

Link copied to clipboard

URI of the inbox resource that carries this request.

Link copied to clipboard

Resource URI being requested (as:object).

Link copied to clipboard

Optional human-readable rationale (as:summary).

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)