| All Verbs | /api/quadrant | ||
|---|---|---|---|
| All Verbs | /api/core/quadrant |
import 'package:servicestack/servicestack.dart';
class ListItemModel implements IConvertible
{
String? ListItemId;
String? Name;
String? Description;
String? ShortName;
bool? IsDefault;
int? Order;
String? ListItemTrafficLightId;
String? PrimaryListItemImageId;
String? PrimaryListItemImageUrl;
String? PrimaryImageThumbnailUrl;
String? OwnerContactId;
String? RecordStatus;
ListItemModel({this.ListItemId,this.Name,this.Description,this.ShortName,this.IsDefault,this.Order,this.ListItemTrafficLightId,this.PrimaryListItemImageId,this.PrimaryListItemImageUrl,this.PrimaryImageThumbnailUrl,this.OwnerContactId,this.RecordStatus});
ListItemModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ListItemId = json['ListItemId'];
Name = json['Name'];
Description = json['Description'];
ShortName = json['ShortName'];
IsDefault = json['IsDefault'];
Order = json['Order'];
ListItemTrafficLightId = json['ListItemTrafficLightId'];
PrimaryListItemImageId = json['PrimaryListItemImageId'];
PrimaryListItemImageUrl = json['PrimaryListItemImageUrl'];
PrimaryImageThumbnailUrl = json['PrimaryImageThumbnailUrl'];
OwnerContactId = json['OwnerContactId'];
RecordStatus = json['RecordStatus'];
return this;
}
Map<String, dynamic> toJson() => {
'ListItemId': ListItemId,
'Name': Name,
'Description': Description,
'ShortName': ShortName,
'IsDefault': IsDefault,
'Order': Order,
'ListItemTrafficLightId': ListItemTrafficLightId,
'PrimaryListItemImageId': PrimaryListItemImageId,
'PrimaryListItemImageUrl': PrimaryListItemImageUrl,
'PrimaryImageThumbnailUrl': PrimaryImageThumbnailUrl,
'OwnerContactId': OwnerContactId,
'RecordStatus': RecordStatus
};
getTypeName() => "ListItemModel";
TypeContext? context = _ctx;
}
class ProfileLicenseeRoleView implements IConvertible
{
String? ApplianceId;
String? ApplianceName;
String? ProfileId;
String? ProfileName;
bool? IsDefaultProfile;
String? ContactId;
String? ContactName;
String? ContactTypeId;
String? LicenseeContactRoleConnectionId;
String? UserContactRoleConnectionId;
String? RoleId;
String? RoleName;
String? LicenseeContactId;
String? LicenseeContactName;
int? RoleOrder;
String? ProfileImageUrl;
String? ProfileThumbnailImageUrl;
bool? IsLicenseeRole;
bool? IsManageContactsRole;
bool? IsPlatformRole;
bool? IsDefault;
ProfileLicenseeRoleView({this.ApplianceId,this.ApplianceName,this.ProfileId,this.ProfileName,this.IsDefaultProfile,this.ContactId,this.ContactName,this.ContactTypeId,this.LicenseeContactRoleConnectionId,this.UserContactRoleConnectionId,this.RoleId,this.RoleName,this.LicenseeContactId,this.LicenseeContactName,this.RoleOrder,this.ProfileImageUrl,this.ProfileThumbnailImageUrl,this.IsLicenseeRole,this.IsManageContactsRole,this.IsPlatformRole,this.IsDefault});
ProfileLicenseeRoleView.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ApplianceId = json['ApplianceId'];
ApplianceName = json['ApplianceName'];
ProfileId = json['ProfileId'];
ProfileName = json['ProfileName'];
IsDefaultProfile = json['IsDefaultProfile'];
ContactId = json['ContactId'];
ContactName = json['ContactName'];
ContactTypeId = json['ContactTypeId'];
LicenseeContactRoleConnectionId = json['LicenseeContactRoleConnectionId'];
UserContactRoleConnectionId = json['UserContactRoleConnectionId'];
RoleId = json['RoleId'];
RoleName = json['RoleName'];
LicenseeContactId = json['LicenseeContactId'];
LicenseeContactName = json['LicenseeContactName'];
RoleOrder = json['RoleOrder'];
ProfileImageUrl = json['ProfileImageUrl'];
ProfileThumbnailImageUrl = json['ProfileThumbnailImageUrl'];
IsLicenseeRole = json['IsLicenseeRole'];
IsManageContactsRole = json['IsManageContactsRole'];
IsPlatformRole = json['IsPlatformRole'];
IsDefault = json['IsDefault'];
return this;
}
Map<String, dynamic> toJson() => {
'ApplianceId': ApplianceId,
'ApplianceName': ApplianceName,
'ProfileId': ProfileId,
'ProfileName': ProfileName,
'IsDefaultProfile': IsDefaultProfile,
'ContactId': ContactId,
'ContactName': ContactName,
'ContactTypeId': ContactTypeId,
'LicenseeContactRoleConnectionId': LicenseeContactRoleConnectionId,
'UserContactRoleConnectionId': UserContactRoleConnectionId,
'RoleId': RoleId,
'RoleName': RoleName,
'LicenseeContactId': LicenseeContactId,
'LicenseeContactName': LicenseeContactName,
'RoleOrder': RoleOrder,
'ProfileImageUrl': ProfileImageUrl,
'ProfileThumbnailImageUrl': ProfileThumbnailImageUrl,
'IsLicenseeRole': IsLicenseeRole,
'IsManageContactsRole': IsManageContactsRole,
'IsPlatformRole': IsPlatformRole,
'IsDefault': IsDefault
};
getTypeName() => "ProfileLicenseeRoleView";
TypeContext? context = _ctx;
}
class QuadrantModel implements IConvertible
{
List<ListItemModel>? Appliances;
String? UserProfileId;
String? RoleConnectionId;
String? LicenseeContactId;
String? LicenseeContactName;
String? ApplianceId;
String? FullName;
String? ImpersonatingUserProfileId;
List<ProfileLicenseeRoleView>? Connections;
QuadrantModel({this.Appliances,this.UserProfileId,this.RoleConnectionId,this.LicenseeContactId,this.LicenseeContactName,this.ApplianceId,this.FullName,this.ImpersonatingUserProfileId,this.Connections});
QuadrantModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Appliances = JsonConverters.fromJson(json['Appliances'],'List<ListItemModel>',context!);
UserProfileId = json['UserProfileId'];
RoleConnectionId = json['RoleConnectionId'];
LicenseeContactId = json['LicenseeContactId'];
LicenseeContactName = json['LicenseeContactName'];
ApplianceId = json['ApplianceId'];
FullName = json['FullName'];
ImpersonatingUserProfileId = json['ImpersonatingUserProfileId'];
Connections = JsonConverters.fromJson(json['Connections'],'List<ProfileLicenseeRoleView>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Appliances': JsonConverters.toJson(Appliances,'List<ListItemModel>',context!),
'UserProfileId': UserProfileId,
'RoleConnectionId': RoleConnectionId,
'LicenseeContactId': LicenseeContactId,
'LicenseeContactName': LicenseeContactName,
'ApplianceId': ApplianceId,
'FullName': FullName,
'ImpersonatingUserProfileId': ImpersonatingUserProfileId,
'Connections': JsonConverters.toJson(Connections,'List<ProfileLicenseeRoleView>',context!)
};
getTypeName() => "QuadrantModel";
TypeContext? context = _ctx;
}
class GetQuadrantResponse implements IConvertible
{
QuadrantModel? Quadrant;
List<String>? Permissions;
ResponseStatus? ResponseStatus;
GetQuadrantResponse({this.Quadrant,this.Permissions,this.ResponseStatus});
GetQuadrantResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Quadrant = JsonConverters.fromJson(json['Quadrant'],'QuadrantModel',context!);
Permissions = JsonConverters.fromJson(json['Permissions'],'List<String>',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Quadrant': JsonConverters.toJson(Quadrant,'QuadrantModel',context!),
'Permissions': JsonConverters.toJson(Permissions,'List<String>',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "GetQuadrantResponse";
TypeContext? context = _ctx;
}
/**
* Get quadrant data for the perspective session id specified in the authentication token
*/
// @Api(Description="Get quadrant data for the perspective session id specified in the authentication token")
class GetQuadrant implements IConvertible
{
String? PerspectiveSessionId;
GetQuadrant({this.PerspectiveSessionId});
GetQuadrant.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PerspectiveSessionId = json['PerspectiveSessionId'];
return this;
}
Map<String, dynamic> toJson() => {
'PerspectiveSessionId': PerspectiveSessionId
};
getTypeName() => "GetQuadrant";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: <String, TypeInfo> {
'ListItemModel': TypeInfo(TypeOf.Class, create:() => ListItemModel()),
'ProfileLicenseeRoleView': TypeInfo(TypeOf.Class, create:() => ProfileLicenseeRoleView()),
'QuadrantModel': TypeInfo(TypeOf.Class, create:() => QuadrantModel()),
'List<ListItemModel>': TypeInfo(TypeOf.Class, create:() => <ListItemModel>[]),
'List<ProfileLicenseeRoleView>': TypeInfo(TypeOf.Class, create:() => <ProfileLicenseeRoleView>[]),
'GetQuadrantResponse': TypeInfo(TypeOf.Class, create:() => GetQuadrantResponse()),
'GetQuadrant': TypeInfo(TypeOf.Class, create:() => GetQuadrant()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/quadrant HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetQuadrant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<PerspectiveSessionId>00000000-0000-0000-0000-000000000000</PerspectiveSessionId>
</GetQuadrant>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetQuadrantResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
</Permissions>
<Quadrant xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.Models">
<d2p1:ApplianceId>00000000-0000-0000-0000-000000000000</d2p1:ApplianceId>
<d2p1:Appliances xmlns:d3p1="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.WebAPIModel.Models">
<d3p1:ListItemModel>
<d3p1:Description>String</d3p1:Description>
<d3p1:IsDefault>false</d3p1:IsDefault>
<d3p1:ListItemId>00000000-0000-0000-0000-000000000000</d3p1:ListItemId>
<d3p1:ListItemTrafficLightId>00000000-0000-0000-0000-000000000000</d3p1:ListItemTrafficLightId>
<d3p1:Name>String</d3p1:Name>
<d3p1:Order>0</d3p1:Order>
<d3p1:OwnerContactId>00000000-0000-0000-0000-000000000000</d3p1:OwnerContactId>
<d3p1:PrimaryImageThumbnailUrl>String</d3p1:PrimaryImageThumbnailUrl>
<d3p1:PrimaryListItemImageId>00000000-0000-0000-0000-000000000000</d3p1:PrimaryListItemImageId>
<d3p1:PrimaryListItemImageUrl>String</d3p1:PrimaryListItemImageUrl>
<d3p1:RecordStatus>String</d3p1:RecordStatus>
<d3p1:ShortName>String</d3p1:ShortName>
</d3p1:ListItemModel>
</d2p1:Appliances>
<d2p1:Connections xmlns:d3p1="http://schemas.datacontract.org/2004/07/Eros.Causal.Common.Entity">
<d3p1:ProfileLicenseeRoleView>
<d3p1:_x003C_ApplianceId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_ApplianceId_x003E_k__BackingField>
<d3p1:_x003C_ApplianceName_x003E_k__BackingField>String</d3p1:_x003C_ApplianceName_x003E_k__BackingField>
<d3p1:_x003C_ContactId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_ContactId_x003E_k__BackingField>
<d3p1:_x003C_ContactName_x003E_k__BackingField>String</d3p1:_x003C_ContactName_x003E_k__BackingField>
<d3p1:_x003C_ContactTypeId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_ContactTypeId_x003E_k__BackingField>
<d3p1:_x003C_IsDefaultProfile_x003E_k__BackingField>false</d3p1:_x003C_IsDefaultProfile_x003E_k__BackingField>
<d3p1:_x003C_IsDefault_x003E_k__BackingField>false</d3p1:_x003C_IsDefault_x003E_k__BackingField>
<d3p1:_x003C_IsLicenseeRole_x003E_k__BackingField>false</d3p1:_x003C_IsLicenseeRole_x003E_k__BackingField>
<d3p1:_x003C_IsManageContactsRole_x003E_k__BackingField>false</d3p1:_x003C_IsManageContactsRole_x003E_k__BackingField>
<d3p1:_x003C_IsPlatformRole_x003E_k__BackingField>false</d3p1:_x003C_IsPlatformRole_x003E_k__BackingField>
<d3p1:_x003C_LicenseeContactId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_LicenseeContactId_x003E_k__BackingField>
<d3p1:_x003C_LicenseeContactName_x003E_k__BackingField>String</d3p1:_x003C_LicenseeContactName_x003E_k__BackingField>
<d3p1:_x003C_LicenseeContactRoleConnectionId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_LicenseeContactRoleConnectionId_x003E_k__BackingField>
<d3p1:_x003C_ProfileId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_ProfileId_x003E_k__BackingField>
<d3p1:_x003C_ProfileImageUrl_x003E_k__BackingField>String</d3p1:_x003C_ProfileImageUrl_x003E_k__BackingField>
<d3p1:_x003C_ProfileName_x003E_k__BackingField>String</d3p1:_x003C_ProfileName_x003E_k__BackingField>
<d3p1:_x003C_ProfileThumbnailImageUrl_x003E_k__BackingField>String</d3p1:_x003C_ProfileThumbnailImageUrl_x003E_k__BackingField>
<d3p1:_x003C_RoleId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_RoleId_x003E_k__BackingField>
<d3p1:_x003C_RoleName_x003E_k__BackingField>String</d3p1:_x003C_RoleName_x003E_k__BackingField>
<d3p1:_x003C_RoleOrder_x003E_k__BackingField>0</d3p1:_x003C_RoleOrder_x003E_k__BackingField>
<d3p1:_x003C_UserContactRoleConnectionId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_UserContactRoleConnectionId_x003E_k__BackingField>
</d3p1:ProfileLicenseeRoleView>
</d2p1:Connections>
<d2p1:FullName>String</d2p1:FullName>
<d2p1:ImpersonatingUserProfileId>00000000-0000-0000-0000-000000000000</d2p1:ImpersonatingUserProfileId>
<d2p1:LicenseeContactId>00000000-0000-0000-0000-000000000000</d2p1:LicenseeContactId>
<d2p1:LicenseeContactName>String</d2p1:LicenseeContactName>
<d2p1:RoleConnectionId>00000000-0000-0000-0000-000000000000</d2p1:RoleConnectionId>
<d2p1:UserProfileId>00000000-0000-0000-0000-000000000000</d2p1:UserProfileId>
</Quadrant>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</GetQuadrantResponse>