AppHarbor.AppHarborClient.GetBuilds C# (CSharp) Method

GetBuilds() public method

public GetBuilds ( string applicationSlug, int count = null, int offset = null ) : IEnumerable
applicationSlug string
count int
offset int
return IEnumerable
		public IEnumerable<Build> GetBuilds(string applicationSlug, int? count = null, int? offset = null)
		{
			CheckArgumentNull("applicationSlug", applicationSlug);

			var request = new RestRequest();
			request.Resource = "applications/{applicationSlug}/builds?count={count}&offset={offset}";
			request.AddParameter("applicationSlug", applicationSlug, ParameterType.UrlSegment);
			request.AddParameter("count", count.ToString(), ParameterType.UrlSegment);
			request.AddParameter("offset", offset.ToString(), ParameterType.UrlSegment);

			return ExecuteGetListKeyed<Build>(request);
		}
	}

Usage Example

Example #1
0
        public IEnumerable <Build> GetBuilds(string applicationId)
        {
            var builds = _api.GetBuilds(applicationId);

            if (builds == null)
            {
                throw new ApiException();
            }

            return(builds);
        }
All Usage Examples Of AppHarbor.AppHarborClient::GetBuilds