TechStacks!

<back to all web services

GetUserInfo

User
The following routes are available for this service:
All Verbs/userinfo/{Id}
import 'package:servicestack/servicestack.dart';

abstract class TechnologyStackBase
{
    int? id;
    String? name;
    String? vendorName;
    String? description;
    String? appUrl;
    String? screenshotUrl;
    DateTime? created;
    String? createdBy;
    DateTime? lastModified;
    String? lastModifiedBy;
    bool? isLocked;
    String? ownerId;
    String? slug;
    // @StringLength(2147483647)
    String? details;

    // @StringLength(2147483647)
    String? detailsHtml;

    DateTime? lastStatusUpdate;
    int? organizationId;
    int? commentsPostId;
    int? viewCount;
    int? favCount;

    TechnologyStackBase({this.id,this.name,this.vendorName,this.description,this.appUrl,this.screenshotUrl,this.created,this.createdBy,this.lastModified,this.lastModifiedBy,this.isLocked,this.ownerId,this.slug,this.details,this.detailsHtml,this.lastStatusUpdate,this.organizationId,this.commentsPostId,this.viewCount,this.favCount});
    TechnologyStackBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        vendorName = json['vendorName'];
        description = json['description'];
        appUrl = json['appUrl'];
        screenshotUrl = json['screenshotUrl'];
        created = JsonConverters.fromJson(json['created'],'DateTime',context!);
        createdBy = json['createdBy'];
        lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!);
        lastModifiedBy = json['lastModifiedBy'];
        isLocked = json['isLocked'];
        ownerId = json['ownerId'];
        slug = json['slug'];
        details = json['details'];
        detailsHtml = json['detailsHtml'];
        lastStatusUpdate = JsonConverters.fromJson(json['lastStatusUpdate'],'DateTime',context!);
        organizationId = json['organizationId'];
        commentsPostId = json['commentsPostId'];
        viewCount = json['viewCount'];
        favCount = json['favCount'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'vendorName': vendorName,
        'description': description,
        'appUrl': appUrl,
        'screenshotUrl': screenshotUrl,
        'created': JsonConverters.toJson(created,'DateTime',context!),
        'createdBy': createdBy,
        'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!),
        'lastModifiedBy': lastModifiedBy,
        'isLocked': isLocked,
        'ownerId': ownerId,
        'slug': slug,
        'details': details,
        'detailsHtml': detailsHtml,
        'lastStatusUpdate': JsonConverters.toJson(lastStatusUpdate,'DateTime',context!),
        'organizationId': organizationId,
        'commentsPostId': commentsPostId,
        'viewCount': viewCount,
        'favCount': favCount
    };

    getTypeName() => "TechnologyStackBase";
    TypeContext? context = _ctx;
}

class TechnologyStack extends TechnologyStackBase implements IConvertible
{
    TechnologyStack();
    TechnologyStack.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "TechnologyStack";
    TypeContext? context = _ctx;
}

enum TechnologyTier
{
    ProgrammingLanguage,
    Client,
    Http,
    Server,
    Data,
    SoftwareInfrastructure,
    OperatingSystem,
    HardwareInfrastructure,
    ThirdPartyServices,
}

abstract class TechnologyBase
{
    int? id;
    String? name;
    String? vendorName;
    String? vendorUrl;
    String? productUrl;
    String? logoUrl;
    String? description;
    DateTime? created;
    String? createdBy;
    DateTime? lastModified;
    String? lastModifiedBy;
    String? ownerId;
    String? slug;
    bool? logoApproved;
    bool? isLocked;
    TechnologyTier? tier;
    DateTime? lastStatusUpdate;
    int? organizationId;
    int? commentsPostId;
    int? viewCount;
    int? favCount;

    TechnologyBase({this.id,this.name,this.vendorName,this.vendorUrl,this.productUrl,this.logoUrl,this.description,this.created,this.createdBy,this.lastModified,this.lastModifiedBy,this.ownerId,this.slug,this.logoApproved,this.isLocked,this.tier,this.lastStatusUpdate,this.organizationId,this.commentsPostId,this.viewCount,this.favCount});
    TechnologyBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        vendorName = json['vendorName'];
        vendorUrl = json['vendorUrl'];
        productUrl = json['productUrl'];
        logoUrl = json['logoUrl'];
        description = json['description'];
        created = JsonConverters.fromJson(json['created'],'DateTime',context!);
        createdBy = json['createdBy'];
        lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!);
        lastModifiedBy = json['lastModifiedBy'];
        ownerId = json['ownerId'];
        slug = json['slug'];
        logoApproved = json['logoApproved'];
        isLocked = json['isLocked'];
        tier = JsonConverters.fromJson(json['tier'],'TechnologyTier',context!);
        lastStatusUpdate = JsonConverters.fromJson(json['lastStatusUpdate'],'DateTime',context!);
        organizationId = json['organizationId'];
        commentsPostId = json['commentsPostId'];
        viewCount = json['viewCount'];
        favCount = json['favCount'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'vendorName': vendorName,
        'vendorUrl': vendorUrl,
        'productUrl': productUrl,
        'logoUrl': logoUrl,
        'description': description,
        'created': JsonConverters.toJson(created,'DateTime',context!),
        'createdBy': createdBy,
        'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!),
        'lastModifiedBy': lastModifiedBy,
        'ownerId': ownerId,
        'slug': slug,
        'logoApproved': logoApproved,
        'isLocked': isLocked,
        'tier': JsonConverters.toJson(tier,'TechnologyTier',context!),
        'lastStatusUpdate': JsonConverters.toJson(lastStatusUpdate,'DateTime',context!),
        'organizationId': organizationId,
        'commentsPostId': commentsPostId,
        'viewCount': viewCount,
        'favCount': favCount
    };

    getTypeName() => "TechnologyBase";
    TypeContext? context = _ctx;
}

class Technology extends TechnologyBase implements IConvertible
{
    Technology();
    Technology.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "Technology";
    TypeContext? context = _ctx;
}

class UserActivity implements IConvertible
{
    int? id;
    String? userName;
    int? karma;
    int? technologyCount;
    int? techStacksCount;
    int? postsCount;
    int? postUpVotes;
    int? postDownVotes;
    int? commentUpVotes;
    int? commentDownVotes;
    int? postCommentsCount;
    int? pinnedCommentCount;
    int? postReportCount;
    int? postCommentReportCount;
    DateTime? created;
    DateTime? modified;

    UserActivity({this.id,this.userName,this.karma,this.technologyCount,this.techStacksCount,this.postsCount,this.postUpVotes,this.postDownVotes,this.commentUpVotes,this.commentDownVotes,this.postCommentsCount,this.pinnedCommentCount,this.postReportCount,this.postCommentReportCount,this.created,this.modified});
    UserActivity.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        userName = json['userName'];
        karma = json['karma'];
        technologyCount = json['technologyCount'];
        techStacksCount = json['techStacksCount'];
        postsCount = json['postsCount'];
        postUpVotes = json['postUpVotes'];
        postDownVotes = json['postDownVotes'];
        commentUpVotes = json['commentUpVotes'];
        commentDownVotes = json['commentDownVotes'];
        postCommentsCount = json['postCommentsCount'];
        pinnedCommentCount = json['pinnedCommentCount'];
        postReportCount = json['postReportCount'];
        postCommentReportCount = json['postCommentReportCount'];
        created = JsonConverters.fromJson(json['created'],'DateTime',context!);
        modified = JsonConverters.fromJson(json['modified'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'userName': userName,
        'karma': karma,
        'technologyCount': technologyCount,
        'techStacksCount': techStacksCount,
        'postsCount': postsCount,
        'postUpVotes': postUpVotes,
        'postDownVotes': postDownVotes,
        'commentUpVotes': commentUpVotes,
        'commentDownVotes': commentDownVotes,
        'postCommentsCount': postCommentsCount,
        'pinnedCommentCount': pinnedCommentCount,
        'postReportCount': postReportCount,
        'postCommentReportCount': postCommentReportCount,
        'created': JsonConverters.toJson(created,'DateTime',context!),
        'modified': JsonConverters.toJson(modified,'DateTime',context!)
    };

    getTypeName() => "UserActivity";
    TypeContext? context = _ctx;
}

class GetUserInfoResponse implements IConvertible
{
    int? id;
    String? userName;
    DateTime? created;
    String? avatarUrl;
    List<TechnologyStack>? techStacks;
    List<TechnologyStack>? favoriteTechStacks;
    List<Technology>? favoriteTechnologies;
    UserActivity? userActivity;
    ResponseStatus? responseStatus;

    GetUserInfoResponse({this.id,this.userName,this.created,this.avatarUrl,this.techStacks,this.favoriteTechStacks,this.favoriteTechnologies,this.userActivity,this.responseStatus});
    GetUserInfoResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        userName = json['userName'];
        created = JsonConverters.fromJson(json['created'],'DateTime',context!);
        avatarUrl = json['avatarUrl'];
        techStacks = JsonConverters.fromJson(json['techStacks'],'List<TechnologyStack>',context!);
        favoriteTechStacks = JsonConverters.fromJson(json['favoriteTechStacks'],'List<TechnologyStack>',context!);
        favoriteTechnologies = JsonConverters.fromJson(json['favoriteTechnologies'],'List<Technology>',context!);
        userActivity = JsonConverters.fromJson(json['userActivity'],'UserActivity',context!);
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'userName': userName,
        'created': JsonConverters.toJson(created,'DateTime',context!),
        'avatarUrl': avatarUrl,
        'techStacks': JsonConverters.toJson(techStacks,'List<TechnologyStack>',context!),
        'favoriteTechStacks': JsonConverters.toJson(favoriteTechStacks,'List<TechnologyStack>',context!),
        'favoriteTechnologies': JsonConverters.toJson(favoriteTechnologies,'List<Technology>',context!),
        'userActivity': JsonConverters.toJson(userActivity,'UserActivity',context!),
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "GetUserInfoResponse";
    TypeContext? context = _ctx;
}

class GetUserInfo implements IGet, IConvertible
{
    int? id;
    String? userName;

    GetUserInfo({this.id,this.userName});
    GetUserInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        userName = json['userName'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'userName': userName
    };

    getTypeName() => "GetUserInfo";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'techstacks.io', types: <String, TypeInfo> {
    'TechnologyStackBase': TypeInfo(TypeOf.AbstractClass),
    'TechnologyStack': TypeInfo(TypeOf.Class, create:() => TechnologyStack()),
    'TechnologyTier': TypeInfo(TypeOf.Enum, enumValues:TechnologyTier.values),
    'TechnologyBase': TypeInfo(TypeOf.AbstractClass),
    'Technology': TypeInfo(TypeOf.Class, create:() => Technology()),
    'UserActivity': TypeInfo(TypeOf.Class, create:() => UserActivity()),
    'GetUserInfoResponse': TypeInfo(TypeOf.Class, create:() => GetUserInfoResponse()),
    'List<TechnologyStack>': TypeInfo(TypeOf.Class, create:() => <TechnologyStack>[]),
    'List<Technology>': TypeInfo(TypeOf.Class, create:() => <Technology>[]),
    'GetUserInfo': TypeInfo(TypeOf.Class, create:() => GetUserInfo()),
});

Dart GetUserInfo DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /userinfo/{Id} HTTP/1.1 
Host: techstacks.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetUserInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
  <Id>0</Id>
  <UserName>String</UserName>
</GetUserInfo>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetUserInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
  <AvatarUrl>String</AvatarUrl>
  <Created>0001-01-01T00:00:00</Created>
  <FavoriteTechStacks xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
    <d2p1:TechnologyStack>
      <d2p1:AppUrl>String</d2p1:AppUrl>
      <d2p1:CommentsPostId>0</d2p1:CommentsPostId>
      <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
      <d2p1:CreatedBy>String</d2p1:CreatedBy>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:Details>String</d2p1:Details>
      <d2p1:DetailsHtml>String</d2p1:DetailsHtml>
      <d2p1:FavCount>0</d2p1:FavCount>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IsLocked>false</d2p1:IsLocked>
      <d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
      <d2p1:LastModifiedBy>String</d2p1:LastModifiedBy>
      <d2p1:LastStatusUpdate>0001-01-01T00:00:00</d2p1:LastStatusUpdate>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:OrganizationId>0</d2p1:OrganizationId>
      <d2p1:OwnerId>String</d2p1:OwnerId>
      <d2p1:ScreenshotUrl>String</d2p1:ScreenshotUrl>
      <d2p1:Slug>String</d2p1:Slug>
      <d2p1:VendorName>String</d2p1:VendorName>
      <d2p1:ViewCount>0</d2p1:ViewCount>
    </d2p1:TechnologyStack>
  </FavoriteTechStacks>
  <FavoriteTechnologies xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
    <d2p1:Technology>
      <d2p1:CommentsPostId>0</d2p1:CommentsPostId>
      <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
      <d2p1:CreatedBy>String</d2p1:CreatedBy>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:FavCount>0</d2p1:FavCount>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IsLocked>false</d2p1:IsLocked>
      <d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
      <d2p1:LastModifiedBy>String</d2p1:LastModifiedBy>
      <d2p1:LastStatusUpdate>0001-01-01T00:00:00</d2p1:LastStatusUpdate>
      <d2p1:LogoApproved>false</d2p1:LogoApproved>
      <d2p1:LogoUrl>String</d2p1:LogoUrl>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:OrganizationId>0</d2p1:OrganizationId>
      <d2p1:OwnerId>String</d2p1:OwnerId>
      <d2p1:ProductUrl>String</d2p1:ProductUrl>
      <d2p1:Slug>String</d2p1:Slug>
      <d2p1:Tier>ProgrammingLanguage</d2p1:Tier>
      <d2p1:VendorName>String</d2p1:VendorName>
      <d2p1:VendorUrl>String</d2p1:VendorUrl>
      <d2p1:ViewCount>0</d2p1:ViewCount>
    </d2p1:Technology>
  </FavoriteTechnologies>
  <Id>0</Id>
  <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>
  <TechStacks xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
    <d2p1:TechnologyStack>
      <d2p1:AppUrl>String</d2p1:AppUrl>
      <d2p1:CommentsPostId>0</d2p1:CommentsPostId>
      <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
      <d2p1:CreatedBy>String</d2p1:CreatedBy>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:Details>String</d2p1:Details>
      <d2p1:DetailsHtml>String</d2p1:DetailsHtml>
      <d2p1:FavCount>0</d2p1:FavCount>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IsLocked>false</d2p1:IsLocked>
      <d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
      <d2p1:LastModifiedBy>String</d2p1:LastModifiedBy>
      <d2p1:LastStatusUpdate>0001-01-01T00:00:00</d2p1:LastStatusUpdate>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:OrganizationId>0</d2p1:OrganizationId>
      <d2p1:OwnerId>String</d2p1:OwnerId>
      <d2p1:ScreenshotUrl>String</d2p1:ScreenshotUrl>
      <d2p1:Slug>String</d2p1:Slug>
      <d2p1:VendorName>String</d2p1:VendorName>
      <d2p1:ViewCount>0</d2p1:ViewCount>
    </d2p1:TechnologyStack>
  </TechStacks>
  <UserActivity xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
    <d2p1:CommentDownVotes>0</d2p1:CommentDownVotes>
    <d2p1:CommentUpVotes>0</d2p1:CommentUpVotes>
    <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:Karma>0</d2p1:Karma>
    <d2p1:Modified>0001-01-01T00:00:00</d2p1:Modified>
    <d2p1:PinnedCommentCount>0</d2p1:PinnedCommentCount>
    <d2p1:PostCommentReportCount>0</d2p1:PostCommentReportCount>
    <d2p1:PostCommentsCount>0</d2p1:PostCommentsCount>
    <d2p1:PostDownVotes>0</d2p1:PostDownVotes>
    <d2p1:PostReportCount>0</d2p1:PostReportCount>
    <d2p1:PostUpVotes>0</d2p1:PostUpVotes>
    <d2p1:PostsCount>0</d2p1:PostsCount>
    <d2p1:TechStacksCount>0</d2p1:TechStacksCount>
    <d2p1:TechnologyCount>0</d2p1:TechnologyCount>
    <d2p1:UserName>String</d2p1:UserName>
  </UserActivity>
  <UserName>String</UserName>
</GetUserInfoResponse>