MemberSubmission

class MemberSubmission(val globalId: String, val kind: MemberSubmissionKind?, val name: String?, val status: MemberSubmissionStatus?, val statusName: String?, val reasonNote: String?, val description: String?, val locationCategoryId: Int?, val locationCategoryName: String?, val locationTypeId: Int?, val locationTypeName: String?, val locationId: Long?, val reportStatusName: String?, val address: MemberSubmissionAddress?, val latitude: Double?, val longitude: Double?, val createdAt: String?, val problemType: LocationProblemType?)

One row of the member's submission history — either a place they nominated or a problem they reported on an existing location, in a single shape so both render in one list. Returned by Locations.getMySubmissions.

Constructors

Link copied to clipboard
constructor(globalId: String, kind: MemberSubmissionKind?, name: String?, status: MemberSubmissionStatus?, statusName: String?, reasonNote: String?, description: String?, locationCategoryId: Int?, locationCategoryName: String?, locationTypeId: Int?, locationTypeName: String?, locationId: Long?, reportStatusName: String?, address: MemberSubmissionAddress?, latitude: Double?, longitude: Double?, createdAt: String?, problemType: LocationProblemType?)
constructor(globalId: String, kind: MemberSubmissionKind?, name: String?, status: MemberSubmissionStatus?, statusName: String?, reasonNote: String?, description: String?, locationCategoryId: Int?, locationCategoryName: String?, locationTypeId: Int?, locationTypeName: String?, locationId: Long?, reportStatusName: String?, address: MemberSubmissionAddress?, latitude: Double?, longitude: Double?, createdAt: String?)

The 1.12 constructor, kept for source and binary compatibility; the row it builds has no problemType.

Properties

Link copied to clipboard

The submission's address block, when the backend sent one.

Link copied to clipboard

ISO-8601 timestamp of when the member submitted.

Link copied to clipboard

The problem the member described. Reports only.

Link copied to clipboard

Identifier unique across both kinds — the backend's per-kind id can repeat between a nomination and a report, so key list rows on this value.

Link copied to clipboard

Whether this row is a nomination or a report. null when the backend sent a kind this SDK version does not know.

Link copied to clipboard

Latitude in decimal degrees of the nominated place, or of the reported location for a report. null when unknown — a nomination typed by hand without a place id or coordinates has none. Always set together with longitude, so a non-null pair can go straight onto a map.

Link copied to clipboard

Category id of the underlying location.

Link copied to clipboard

Category name of the underlying location.

Link copied to clipboard

The reported location's id. Reports only.

Link copied to clipboard

Location type id, when the backend resolved one.

Link copied to clipboard

Location type name, when the backend resolved one.

Link copied to clipboard

Longitude in decimal degrees; see latitude.

Link copied to clipboard
val name: String?

The name of the nominated place or reported location.

Link copied to clipboard

What a report is about - the LocationProblemReport.problemType the member sent. Reports only: null for a nomination, for a value this SDK version does not know, and from a server that does not send it.

Link copied to clipboard

Why the submission was rejected, or how a report was resolved. null while the review is pending and for approvals without a note.

Link copied to clipboard

A report's own untranslated status (e.g. Resolved, Dismissed) before normalization into status. Reports only.

Link copied to clipboard

The review state, normalized by the backend into one vocabulary for both kinds. null when unrecognized — statusName still carries the raw value.

Link copied to clipboard

The review state exactly as the backend sent it.

Functions

Link copied to clipboard
open override fun toString(): String