Esempio n. 1
0
        public GetResumeResponse GetResume(AttachmentDataType dataType, int id)
        {
            Dictionary<string, string> data = new Dictionary<string, string>();
            data["data_type"] = CamelCaseToUnderscore(Enum.GetName(typeof(AttachmentDataType), dataType));
            data["id"] = id.ToString();

            GetResumeResponse response = new GetResumeResponse(MakeRequest("get_resume", data));
            return response;
        }
Esempio n. 2
0
        public AddAttachmentResponse AddAttachment(AttachmentDataType dataType, int id, string file, 
            bool isResume = false)
        {
            Dictionary<string, string> data = new Dictionary<string, string>();
            data["data_type"] = CamelCaseToUnderscore(Enum.GetName(typeof(AttachmentDataType), dataType));
            data["id"] = id.ToString();

            Dictionary<string, string> files = new Dictionary<string, string>();
            files.Add("file", file);

            data["is_resume"] = isResume.ToString().ToLower();

            AddAttachmentResponse response = new AddAttachmentResponse(
                MakeRequest("add_attachment", data, files)
            );
            return response;
        }