Skip to main content

Class ProfileModel

Class representing a profile.

Assembly: Dalamud.dll
View Source
Declaration
public abstract class ProfileModel

Derived:
Dalamud.Plugin.Internal.Profiles.ProfileModelV1

Properties

Guid

Gets or sets the ID of the profile.

View Source
Declaration
[JsonProperty("id")]
public Guid Guid { get; set; }

Name

Gets or sets the name of the profile.

View Source
Declaration
[JsonProperty("n")]
public string Name { get; set; }

Methods

Deserialize(string)

Deserialize a profile into a model.

View Source
Declaration
public static ProfileModel? Deserialize(string model)
Returns

Dalamud.Plugin.Internal.Profiles.ProfileModel: The parsed model.

Parameters
TypeNameDescription
System.StringmodelThe string to decompress.
Exceptions

System.ArgumentException
Thrown when the parsed string is not a valid profile.

SerializeForShare()

Serialize this model into a string usable for sharing, without including GUIDs.

View Source
Declaration
public string SerializeForShare()
Returns

System.String: The serialized representation of the model.

Exceptions

System.ArgumentOutOfRangeException
Thrown when an unsupported model is serialized.