/// <summary> /// /// </summary> /// <param name="action"></param> /// <param name="display"></param> /// <param name="restart"></param> /// <param name="commandLine"></param> /// <param name="cmdShow"></param> /// <param name="resume"></param> /// <param name="splashScreen"></param> /// <param name="relation"></param> /// <param name="passthrough"></param> /// <param name="layoutDirectory"></param> /// <param name="bootstrapperWorkingFolder"></param> /// <param name="bootstrapperApplicationDataPath"></param> public BootstrapperCommand( LaunchAction action, Display display, Restart restart, string commandLine, int cmdShow, ResumeType resume, IntPtr splashScreen, RelationType relation, bool passthrough, string layoutDirectory, string bootstrapperWorkingFolder, string bootstrapperApplicationDataPath) { this.Action = action; this.Display = display; this.Restart = restart; this.commandLine = commandLine; this.CmdShow = cmdShow; this.Resume = resume; this.SplashScreen = splashScreen; this.Relation = relation; this.Passthrough = passthrough; this.LayoutDirectory = layoutDirectory; this.BootstrapperWorkingFolder = bootstrapperWorkingFolder; this.BootstrapperApplicationDataPath = bootstrapperApplicationDataPath; }
/// <summary> /// Constructs a parse tree for a Resume statement. /// </summary> /// <param name="resumeType">The type of the Resume statement.</param> /// <param name="nextLocation">The location of the 'Next', if any.</param> /// <param name="name">The label name, if any.</param> /// <param name="isLineNumber">Whether the label is a line number.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments of the parse tree.</param> public ResumeStatement(ResumeType resumeType, Location nextLocation, SimpleName name, bool isLineNumber, Span span, IList <Comment> comments) : base(TreeType.ResumeStatement, name, isLineNumber, span, comments) { if (!Enum.IsDefined(typeof(ResumeType), resumeType)) { throw new ArgumentOutOfRangeException("resumeType"); } _ResumeType = resumeType; _NextLocation = nextLocation; }
public static CtpResumeType GetCtpResumeType(ResumeType type) { switch (type) { case ResumeType.Restart: return(CtpResumeType.Restart); case ResumeType.Resume: return(CtpResumeType.Resume); default: return(CtpResumeType.Quick); } }
private static void DoCV() { ResumeType r = new ResumeType(); //r.DistributionGuidelines = new DistributionGuidelinesType(); //r.DistributionGuidelines.DistributeTo = new List<DistributionGuidelinesTypeDistributeTo>(); //DistributionGuidelinesTypeDistributeTo dis = new DistributionGuidelinesTypeDistributeTo(); //dis.Id = CreateEntityIdType(); //dis.ContactMethod = new List<ContactMethodType>(); //ContactMethodType m = CreateContactMethodType(); //dis.ContactMethod.Add(m); //dis.Name = "Bert Zingemans"; //dis.validFrom = GetDateTime(); //dis.validTo = "2011-12-31"; //r.DistributionGuidelines.DistributeTo.Add(dis); r.lang = "nl"; r.ResumeId = CreateEntityIdType(); r.StructuredXMLResume = new StructuredXMLResumeType(); //r.StructuredXMLResume.Achievements = new List<AchievementType>(); //r.StructuredXMLResume.Achievements.Add(CreateAchievementType()); //r.StructuredXMLResume.Associations = new List<Association>(); //r.StructuredXMLResume.Associations.Add(CreateAssociation()); r.StructuredXMLResume.Comments = "Commentaar"; r.StructuredXMLResume.ContactInfo = CreateSEPContactInfoType(); r.StructuredXMLResume.EducationHistory = new List <EducationHistoryTypeSchoolOrInstitution>(); EducationHistoryTypeSchoolOrInstitution e = CreateEducationHistoryTypeSchoolOrInstitution(); r.StructuredXMLResume.EducationHistory.Add(e); r.StructuredXMLResume.EmploymentHistory = new List <EmployerOrgDataType>(); EmployerOrgDataType eh = CreateEmployerOrgDataType(); r.StructuredXMLResume.EmploymentHistory.Add(eh); r.StructuredXMLResume.ExecutiveSummary = "ExecutiveSummary"; r.StructuredXMLResume.Languages = new List <Language>(); Language l = CreateLanguage("nl", "Nederlands"); r.StructuredXMLResume.Languages.Add(l); l = CreateLanguage("de", "Duits"); r.StructuredXMLResume.Languages.Add(l); //r.StructuredXMLResume.LicensesAndCertifications = new List<CredentialType>(); //CredentialType ct = CreateCredentialType(); //r.StructuredXMLResume.LicensesAndCertifications.Add(ct); //r.StructuredXMLResume.MilitaryHistory = new MilitaryHistoryType(); //r.StructuredXMLResume.MilitaryHistory.Comments = "Commentaar"; //r.StructuredXMLResume.MilitaryHistory.CountryServed = "NL"; //r.StructuredXMLResume.MilitaryHistory.ServiceDetail = new List<MilitaryHistoryTypeServiceDetail>(); //MilitaryHistoryTypeServiceDetail mt = CreateMilitaryHistoryTypeServiceDetail(); //r.StructuredXMLResume.MilitaryHistory.ServiceDetail.Add(mt); //r.StructuredXMLResume.PatentHistory = new List<PatentDescriptionType>(); //PatentDescriptionType pdt = CreatePatentDescriptionType(); //r.StructuredXMLResume.PatentHistory.Add(pdt); //r.StructuredXMLResume.ProfessionalAssociations = new List<string>(); //r.StructuredXMLResume.ProfessionalAssociations.Add("ProfessionalAssociations1"); //r.StructuredXMLResume.ProfessionalAssociations.Add("ProfessionalAssociations2"); //PublicationHistoryType pht = CreatePublicationHistoryType(); r.StructuredXMLResume.Qualifications = new StructuredXMLResumeTypeQualifications(); r.StructuredXMLResume.Qualifications.Competency = new List <CompetencyType>(); CompetencyType ct2 = CreateCompetencyType(); r.StructuredXMLResume.Qualifications.Competency.Add(ct2); r.StructuredXMLResume.Qualifications.QualificationSummary = "QualificationSummary"; //r.StructuredXMLResume.References = new List<ReferenceType>(); //ReferenceType rt = CreateReferenceType(); //r.StructuredXMLResume.References.Add(rt); //r.StructuredXMLResume.SpeakingEventsHistory = new List<SpeakingEventType>(); //SpeakingEventType set = CreateSpeakingEventType(); //r.StructuredXMLResume.SpeakingEventsHistory.Add(set); //r.StructuredXMLResume.SecurityCredentials = new List<CredentialType>(); //CredentialType cdt = new CredentialType(); //cdt.Description = "Omschrijving"; //cdt.EffectiveDate = new CredentialTypeEffectiveDate(); //cdt.EffectiveDate.FirstIssuedDate = CreateFlexibleDatesType(); //cdt.EffectiveDate.ValidFrom = CreateFlexibleDatesType(); ; //cdt.EffectiveDate.ValidTo = CreateFlexibleDatesType(); //cdt.Id = "Id"; //cdt.IssuingAuthority = new IssuingAuthorityType(); //cdt.IssuingAuthority.countryCode = "NL"; //cdt.IssuingAuthority.Value = "value"; //cdt.Name = "Name"; //r.StructuredXMLResume.SecurityCredentials.Add(cdt); //r.StructuredXMLResume.ResumeAdditionalItems = new List<AdditionalItemType>(); //AdditionalItemType a = CreateAdditionalItemType(); //r.StructuredXMLResume.ResumeAdditionalItems.Add(a); r.StructuredXMLResume.RevisionDate = GetDateTime(); r.UserArea = new UserAreaType(); r.UserArea.NocoreResume = CreateNocoreResume(); r.UserArea.NocoreResumeSpecified = true; r.SaveToFile("resume.xml"); }
/// <summary> /// Creates a request to call the Resume Formatter endpoint. /// </summary> /// <param name="resume"> /// Either<see cref="ParseResumeResponseValue.ResumeData"/> to include the candidate's personal information or /// <see cref="ParseResumeResponseValue.RedactedResumeData"/> to exclude it. /// <param name="docType">The output document type</param> /// </param> public FormatResumeRequest(ParsedResume resume, ResumeType docType) { ResumeData = resume; Options.OutputType = docType; }