Cochrane+ App API

<back to all web services

GetDebriefReviewRequest

Requires Authentication
The following routes are available for this service:
GET/debriefreview/{Id}
import 'package:servicestack/servicestack.dart';

class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo, IConvertible
{
    /**
    * The API Key required for authentication
    */
    // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
    String? apiKey;

    /**
    * Latitude of the user making this request
    */
    // @ApiMember(DataType="double", Description="Latitude of the user making this request")
    double? latitude;

    /**
    * Longitude of the user making this request
    */
    // @ApiMember(DataType="double", Description="Longitude of the user making this request")
    double? longitude;

    ApiServiceRequest({this.apiKey,this.latitude,this.longitude});
    ApiServiceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        apiKey = json['apiKey'];
        latitude = JsonConverters.toDouble(json['latitude']);
        longitude = JsonConverters.toDouble(json['longitude']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'apiKey': apiKey,
        'latitude': latitude,
        'longitude': longitude
    };

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

class ApiServiceResponse implements IServiceResponse, IConvertible
{
    String? description;
    String? heading;
    bool? wasSuccessful;
    dynamic? modelState;

    ApiServiceResponse({this.description,this.heading,this.wasSuccessful,this.modelState});
    ApiServiceResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        description = json['description'];
        heading = json['heading'];
        wasSuccessful = json['wasSuccessful'];
        modelState = JsonConverters.fromJson(json['modelState'],'dynamic',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'description': description,
        'heading': heading,
        'wasSuccessful': wasSuccessful,
        'modelState': JsonConverters.toJson(modelState,'dynamic',context!)
    };

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

class NewContactDetail implements IConvertible
{
    String? name;
    String? jobTitle;
    String? companyName;
    String? emailAddress;
    String? contactNumber;

    NewContactDetail({this.name,this.jobTitle,this.companyName,this.emailAddress,this.contactNumber});
    NewContactDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        jobTitle = json['jobTitle'];
        companyName = json['companyName'];
        emailAddress = json['emailAddress'];
        contactNumber = json['contactNumber'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'jobTitle': jobTitle,
        'companyName': companyName,
        'emailAddress': emailAddress,
        'contactNumber': contactNumber
    };

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

class DebriefRatingCommentDetail implements IConvertible
{
    int? managerId;
    String? name;
    String? title;
    String? reviewedDate;
    int? rating;
    String? comments;

    DebriefRatingCommentDetail({this.managerId,this.name,this.title,this.reviewedDate,this.rating,this.comments});
    DebriefRatingCommentDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        managerId = json['managerId'];
        name = json['name'];
        title = json['title'];
        reviewedDate = json['reviewedDate'];
        rating = json['rating'];
        comments = json['comments'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'managerId': managerId,
        'name': name,
        'title': title,
        'reviewedDate': reviewedDate,
        'rating': rating,
        'comments': comments
    };

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

class DebriefReviewData implements IConvertible
{
    int? id;
    String? name;
    String? companyName;
    int? meetingId;
    String? linkedToMeeting;
    String? meetingTime;
    String? address;
    String? research;
    String? nextSteps;
    String? feedback;
    String? newOpportunities;
    String? personnelInfo;
    String? groupStructure;
    String? industry;
    double? meetingLatitude;
    double? meetingLongitude;
    String? recordingLength;
    String? recordingTooShort;
    String? majoritySilent;
    String? volumeTooLow;
    String? actionsToTake;
    String? meetingSummary;
    String? polarity;
    String? sentiment;
    String? notesForManagement;
    String? notesForSalesPerson;
    String? overallScore;
    String? personalAppeal;
    String? vocabulary;
    String? equipment;
    String? structure;
    String? coherence;
    String? sectorKnowledge;
    String? clarityOfTechnicalInput;
    String? caseStudyRelevance;
    String? storytelling;
    String? summation;
    String? dynamicDiscussion;
    String? listening;
    List<NewContactDetail>? newContacts;
    String? reportUrl;
    List<DebriefRatingCommentDetail>? ratingCommentDetails;

    DebriefReviewData({this.id,this.name,this.companyName,this.meetingId,this.linkedToMeeting,this.meetingTime,this.address,this.research,this.nextSteps,this.feedback,this.newOpportunities,this.personnelInfo,this.groupStructure,this.industry,this.meetingLatitude,this.meetingLongitude,this.recordingLength,this.recordingTooShort,this.majoritySilent,this.volumeTooLow,this.actionsToTake,this.meetingSummary,this.polarity,this.sentiment,this.notesForManagement,this.notesForSalesPerson,this.overallScore,this.personalAppeal,this.vocabulary,this.equipment,this.structure,this.coherence,this.sectorKnowledge,this.clarityOfTechnicalInput,this.caseStudyRelevance,this.storytelling,this.summation,this.dynamicDiscussion,this.listening,this.newContacts,this.reportUrl,this.ratingCommentDetails});
    DebriefReviewData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        companyName = json['companyName'];
        meetingId = json['meetingId'];
        linkedToMeeting = json['linkedToMeeting'];
        meetingTime = json['meetingTime'];
        address = json['address'];
        research = json['research'];
        nextSteps = json['nextSteps'];
        feedback = json['feedback'];
        newOpportunities = json['newOpportunities'];
        personnelInfo = json['personnelInfo'];
        groupStructure = json['groupStructure'];
        industry = json['industry'];
        meetingLatitude = JsonConverters.toDouble(json['meetingLatitude']);
        meetingLongitude = JsonConverters.toDouble(json['meetingLongitude']);
        recordingLength = json['recordingLength'];
        recordingTooShort = json['recordingTooShort'];
        majoritySilent = json['majoritySilent'];
        volumeTooLow = json['volumeTooLow'];
        actionsToTake = json['actionsToTake'];
        meetingSummary = json['meetingSummary'];
        polarity = json['polarity'];
        sentiment = json['sentiment'];
        notesForManagement = json['notesForManagement'];
        notesForSalesPerson = json['notesForSalesPerson'];
        overallScore = json['overallScore'];
        personalAppeal = json['personalAppeal'];
        vocabulary = json['vocabulary'];
        equipment = json['equipment'];
        structure = json['structure'];
        coherence = json['coherence'];
        sectorKnowledge = json['sectorKnowledge'];
        clarityOfTechnicalInput = json['clarityOfTechnicalInput'];
        caseStudyRelevance = json['caseStudyRelevance'];
        storytelling = json['storytelling'];
        summation = json['summation'];
        dynamicDiscussion = json['dynamicDiscussion'];
        listening = json['listening'];
        newContacts = JsonConverters.fromJson(json['newContacts'],'List<NewContactDetail>',context!);
        reportUrl = json['reportUrl'];
        ratingCommentDetails = JsonConverters.fromJson(json['ratingCommentDetails'],'List<DebriefRatingCommentDetail>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'companyName': companyName,
        'meetingId': meetingId,
        'linkedToMeeting': linkedToMeeting,
        'meetingTime': meetingTime,
        'address': address,
        'research': research,
        'nextSteps': nextSteps,
        'feedback': feedback,
        'newOpportunities': newOpportunities,
        'personnelInfo': personnelInfo,
        'groupStructure': groupStructure,
        'industry': industry,
        'meetingLatitude': meetingLatitude,
        'meetingLongitude': meetingLongitude,
        'recordingLength': recordingLength,
        'recordingTooShort': recordingTooShort,
        'majoritySilent': majoritySilent,
        'volumeTooLow': volumeTooLow,
        'actionsToTake': actionsToTake,
        'meetingSummary': meetingSummary,
        'polarity': polarity,
        'sentiment': sentiment,
        'notesForManagement': notesForManagement,
        'notesForSalesPerson': notesForSalesPerson,
        'overallScore': overallScore,
        'personalAppeal': personalAppeal,
        'vocabulary': vocabulary,
        'equipment': equipment,
        'structure': structure,
        'coherence': coherence,
        'sectorKnowledge': sectorKnowledge,
        'clarityOfTechnicalInput': clarityOfTechnicalInput,
        'caseStudyRelevance': caseStudyRelevance,
        'storytelling': storytelling,
        'summation': summation,
        'dynamicDiscussion': dynamicDiscussion,
        'listening': listening,
        'newContacts': JsonConverters.toJson(newContacts,'List<NewContactDetail>',context!),
        'reportUrl': reportUrl,
        'ratingCommentDetails': JsonConverters.toJson(ratingCommentDetails,'List<DebriefRatingCommentDetail>',context!)
    };

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

class GetDebriefReviewResponse extends ApiServiceResponse implements IConvertible
{
    DebriefReviewData? data;

    GetDebriefReviewResponse({this.data});
    GetDebriefReviewResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        data = JsonConverters.fromJson(json['data'],'DebriefReviewData',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'data': JsonConverters.toJson(data,'DebriefReviewData',context!)
    });

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

class GetDebriefReviewRequest extends ApiServiceRequest implements IConvertible
{
    int? id;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'cochraneplus_api_dev.happen.zone', types: <String, TypeInfo> {
    'ApiServiceRequest': TypeInfo(TypeOf.Class, create:() => ApiServiceRequest()),
    'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()),
    'NewContactDetail': TypeInfo(TypeOf.Class, create:() => NewContactDetail()),
    'DebriefRatingCommentDetail': TypeInfo(TypeOf.Class, create:() => DebriefRatingCommentDetail()),
    'DebriefReviewData': TypeInfo(TypeOf.Class, create:() => DebriefReviewData()),
    'List<NewContactDetail>': TypeInfo(TypeOf.Class, create:() => <NewContactDetail>[]),
    'List<DebriefRatingCommentDetail>': TypeInfo(TypeOf.Class, create:() => <DebriefRatingCommentDetail>[]),
    'GetDebriefReviewResponse': TypeInfo(TypeOf.Class, create:() => GetDebriefReviewResponse()),
    'GetDebriefReviewRequest': TypeInfo(TypeOf.Class, create:() => GetDebriefReviewRequest()),
});

Dart GetDebriefReviewRequest DTOs

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

HTTP + OTHER

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

GET /debriefreview/{Id} HTTP/1.1 
Host: cochraneplus-api-dev.happen.zone 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"data":{"id":0,"name":"String","companyName":"String","meetingId":0,"linkedToMeeting":"String","meetingTime":"String","address":"String","research":"String","nextSteps":"String","feedback":"String","newOpportunities":"String","personnelInfo":"String","groupStructure":"String","industry":"String","meetingLatitude":0,"meetingLongitude":0,"recordingLength":"String","recordingTooShort":"String","majoritySilent":"String","volumeTooLow":"String","actionsToTake":"String","meetingSummary":"String","polarity":"String","sentiment":"String","notesForManagement":"String","notesForSalesPerson":"String","overallScore":"String","personalAppeal":"String","vocabulary":"String","equipment":"String","structure":"String","coherence":"String","sectorKnowledge":"String","clarityOfTechnicalInput":"String","caseStudyRelevance":"String","storytelling":"String","summation":"String","dynamicDiscussion":"String","listening":"String","newContacts":[{}],"reportUrl":"String","ratingCommentDetails":[{"managerId":0,"name":"String","title":"String","reviewedDate":"String","rating":0,"comments":"String"}]},"description":"String","heading":"String","wasSuccessful":false,"modelState":{}}