Skip to content

Commit

Permalink
Initial Checkin
Browse files Browse the repository at this point in the history
- Client
- Tests
- Docs
  • Loading branch information
Robert McLaws committed Jun 15, 2016
1 parent 4407244 commit cafd419
Show file tree
Hide file tree
Showing 25 changed files with 1,064 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Welcome to FullContact.NET!

FullContact.NET is a simple library to let you leverage teh FullContact.com API on any .NET platform.
1 change: 1 addition & 0 deletions docs/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[THIS IS A PLACEHOLDER FOR FUTURE CONTENT]
16 changes: 16 additions & 0 deletions docs/release-notes/1-0-0-alpha1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Downloads

- NuGet: `Install-Package FullContact -Pre` [[Website](http://www.nuget.org/packages/FullContact/1.0.0-alpha1)]
- Source: [[Zip](https://github.com/OData/RESTier/archive/0.5.0-beta.zip)] [[Tarball](https://github.com/OData/RESTier/archive/0.5.0-beta.tar.gz)]

## New Features

- [[Issue](https://github.com/OData/RESTier/issues/150)] [[PR](https://github.com/OData/RESTier/pull/286)] Integrate Microsoft Dependency Injection Framework into RESTier. [Tutorial](http://odata.github.io/RESTier/#04-04-Api-Service).

## Enhancements

- The concept of **hook handler** now becomes **API service** after DI integration.

## Bug Fixes

- [[Issue](https://github.com/OData/RESTier/issues/123)] [[PR](https://github.com/OData/RESTier/pull/294)] Fix a bug that prevents using `Edm.Int64` as entity key.
81 changes: 81 additions & 0 deletions docs/vs-highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
Visual Studio-like style based on original C# coloring by Jason Diamond <[email protected]>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: white;
color: black;
}

.hljs-comment,
.hljs-quote,
.hljs-variable {
color: #008000;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name,
.hljs-tag {
color: #00f;
}

.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute,
.hljs-literal,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-addition {
color: #a31515;
}

.hljs-deletion,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-meta {
color: #2b91af;
}

.hljs-doctag {
color: #808080;
}

.hljs-attr {
color: #f00;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link {
color: #00b0e8;
}


.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

code {
font-size: 80%;
}

td code {
font-size: 100%;
}

.wy-menu-vertical .subnav li.current > a {
padding-left: 2.42em;
}
.wy-menu-vertical .subnav li.current > ul li a {
padding-left: 3.23em;
}
14 changes: 14 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
site_name: FullContact.NET Docs
site_description: Complete instructions on using the FullContact.com API for .NET.
theme: readthedocs
pages:
- Home:
- 'Introduction': 'index.md'
- Release Notes:
- 1.0.0-alpha1: 'release-notes/1-0-0-alpha1.md'
- About:
- 'License': 'license.md'
extra_css: [vs-highlight.css]
markdown_extensions:
- toc:
baselevel: "1"
47 changes: 47 additions & 0 deletions src/FullContactApi.NuGetPackage/FullContactApi.NuGetPackage.nuproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>fc203776-e562-4c7c-9666-2eb47de8b04e</ProjectGuid>
</PropertyGroup>
<PropertyGroup>
<NuProjPath Condition=" '$(NuProjPath)' == '' ">$(MSBuildExtensionsPath)\NuProj\</NuProjPath>
</PropertyGroup>
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
<Id>FullContact</Id>
<Version>1.0.0-Beta1</Version>
<Title>FullContact Client for .NET</Title>
<Authors>advancedrei</Authors>
<Owners>advancedrei</Owners>
<Summary>
</Summary>
<Description>A REST Client library to interact with the FullContact.com API.</Description>
<ReleaseNotes>
</ReleaseNotes>
<ProjectUrl>
</ProjectUrl>
<LicenseUrl>
</LicenseUrl>
<Copyright>Copyright © 2016 AdvancedREI, LLC.</Copyright>
<Tags>
</Tags>
<GenerateSymbolPackage>true</GenerateSymbolPackage>
</PropertyGroup>
<ItemGroup>
<Content Include="Readme.txt" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FullContactApi.Portable\FullContactApi.Portable.csproj" />
</ItemGroup>
<Import Project="$(NuProjPath)\NuProj.targets" />
</Project>
1 change: 1 addition & 0 deletions src/FullContactApi.NuGetPackage/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is your NuGet package.
36 changes: 36 additions & 0 deletions src/FullContactApi.Portable.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25401.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FullContactApi.Portable", "FullContactApi.Portable\FullContactApi.Portable.csproj", "{D281D382-B1B5-4E02-900F-D205137A04F0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FullContactApi.Tests", "\FullContactApi.Tests\FullContactApi.Tests.csproj", "{79F9E704-ABF7-450F-8DE8-355DC4884048}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuGet", "NuGet", "{AC2F0351-6A76-49DE-A9C7-20EBD469422A}"
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "FullContactApi.NuGetPackage", "\FullContactApi.NuGetPackage\FullContactApi.NuGetPackage.nuproj", "{FC203776-E562-4C7C-9666-2EB47DE8B04E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D281D382-B1B5-4E02-900F-D205137A04F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D281D382-B1B5-4E02-900F-D205137A04F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D281D382-B1B5-4E02-900F-D205137A04F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D281D382-B1B5-4E02-900F-D205137A04F0}.Release|Any CPU.Build.0 = Release|Any CPU
{79F9E704-ABF7-450F-8DE8-355DC4884048}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{79F9E704-ABF7-450F-8DE8-355DC4884048}.Debug|Any CPU.Build.0 = Debug|Any CPU
{79F9E704-ABF7-450F-8DE8-355DC4884048}.Release|Any CPU.ActiveCfg = Release|Any CPU
{79F9E704-ABF7-450F-8DE8-355DC4884048}.Release|Any CPU.Build.0 = Release|Any CPU
{FC203776-E562-4C7C-9666-2EB47DE8B04E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FC203776-E562-4C7C-9666-2EB47DE8B04E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC203776-E562-4C7C-9666-2EB47DE8B04E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FC203776-E562-4C7C-9666-2EB47DE8B04E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
129 changes: 129 additions & 0 deletions src/FullContactApi.Portable/CompanyApi/Models/Company.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
using FullContact.Core;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FullContact.CompanyApi.Models
{


public class FullContactCompany
{

[JsonProperty("url")]
public int status { get; set; }

[JsonProperty("url")]
public string requestId { get; set; }

[JsonProperty("url")]
public Category[] category { get; set; }

[JsonProperty("url")]
public string logo { get; set; }

[JsonProperty("url")]
public string website { get; set; }

[JsonProperty("url")]
public string languageLocale { get; set; }

[JsonProperty("url")]
public Organization organization { get; set; }

[JsonProperty("url")]
public List<SocialProfile> socialProfiles { get; set; }

[JsonProperty("url")]
public Traffic traffic { get; set; }
}

public class Organization
{

[JsonProperty("url")]
public string name { get; set; }

[JsonProperty("url")]
public int approxEmployees { get; set; }

[JsonProperty("url")]
public string founded { get; set; }

[JsonProperty("url")]
public string overview { get; set; }

[JsonProperty("url")]
public Contactinfo contactInfo { get; set; }

[JsonProperty("url")]
public List<MediaResource> links { get; set; }

[JsonProperty("url")]
public List<MediaResource> images { get; set; }

[JsonProperty("url")]
public string[] keywords { get; set; }
}

public class Contactinfo
{

[JsonProperty("url")]
public Emailaddress[] emailAddresses { get; set; }

[JsonProperty("url")]
public Phonenumber[] phoneNumbers { get; set; }

[JsonProperty("url")]
public Address[] addresses { get; set; }
}

public class Emailaddress
{
public string value { get; set; }
public string label { get; set; }
}

public class Phonenumber
{
public string number { get; set; }
public string label { get; set; }
}

public class Address
{
public string addressLine1 { get; set; }
public string addressLine2 { get; set; }
public string locality { get; set; }
public CodedGeography region { get; set; }
public CodedGeography country { get; set; }
public string postalCode { get; set; }
public string label { get; set; }
}

public class Traffic
{
public Ranking[] topCountryRanking { get; set; }
public Ranking[] ranking { get; set; }
}

public class Ranking
{
public int rank { get; set; }
public string locale { get; set; }
}

public class Category
{
public string name { get; set; }
public string code { get; set; }
}




}
18 changes: 18 additions & 0 deletions src/FullContactApi.Portable/Core/CodedGeography.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FullContact.Core
{
public class CodedGeography : Geography
{

[JsonProperty("code")]
public string Code { get; set; }

}

}
21 changes: 21 additions & 0 deletions src/FullContactApi.Portable/Core/Geography.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FullContact.Core
{
public class Geography
{

[JsonProperty("deduced")]
public bool IsDeduced { get; set; }

[JsonProperty("name")]
public string Name { get; set; }

}

}
Loading

0 comments on commit cafd419

Please sign in to comment.