Ejemplo n.º 1
0
        private string GetMpPicture(TWFYMPResults mpResult)
        {
            var theyWordkForYour     = new API();
            List <TWFTPerson> result = JsonConvert.DeserializeObject <List <TWFTPerson> >(theyWordkForYour.Query("getPerson", new string[]
            {
                "id:" + mpResult.person_id,
                "output:js"
            }));

            return("http://www.theyworkforyou.com/" + result[0].image);
        }
Ejemplo n.º 2
0
        private List <OfficeDataModel> SetMPOffices(TWFYMPResults mpResult)
        {
            var offices = new List <OfficeDataModel>();

            if (mpResult.offices != null && mpResult.offices.Count > 0)
            {
                offices = mpResult.offices.Select(officeResult => new OfficeDataModel()
                {
                    Department = officeResult.dept,
                    Position   = officeResult.position,
                    FromDate   = officeResult.from_date,
                    ToDate     = officeResult.to_date
                }).ToList();
            }
            return(offices);
        }