Skip to content

Commit

Permalink
initial commit of code for public repo
Browse files Browse the repository at this point in the history
  • Loading branch information
juswilliams committed May 31, 2016
0 parents commit 4f3ad8d
Show file tree
Hide file tree
Showing 30 changed files with 1,993 additions and 0 deletions.
239 changes: 239 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# Project Files
**/app.config

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config

# Windows Store app package directory
AppPackages/
BundleArtifacts/

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe

# FAKE - F# Make
.fake/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# spatial-connect
18 changes: 18 additions & 0 deletions SpatialConnect.Entity/BaseEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Newtonsoft.Json;
using System.IO;

namespace SpatialConnect.Entity
{
public abstract class BaseEntity
{
[JsonProperty("py/object")]
public string py_object { get; set; }

public void Write(string path)
{
string json = JsonConvert.SerializeObject(this);

File.WriteAllText(path, json);
}
}
}
51 changes: 51 additions & 0 deletions SpatialConnect.Entity/Config.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using Newtonsoft.Json;
using System.Collections.Generic;

namespace SpatialConnect.Entity
{
public class Config : BaseEntity
{
public string arcgis_username { get; set; }
public string webeoc_position { get; set; }
public string webeoc_incident { get; set; }
public string webeoc_password { get; set; }
public string webeoc_jurisdiction { get; set; }
public string arcgis_instance { get; set; }
public string arcgis_database { get; set; }
public string arcgis_password { get; set; }
public string arcgis_keyword { get; set; }
public string arcgis_version { get; set; }
public string webeoc_username { get; set; }
public List<string> containers { get; set; }
public List<string> running_containers { get; set; }
public string path { get; set; }
public string type { get; set; }
public string arcgis_server { get; set; }

[JsonIgnore]
public string app_path { get; set; }
[JsonIgnore]
public List<string> managed_containers { get; set; }

public Config()
{
managed_containers = new List<string>();
}

public void AddManagedContainer(string containerName)
{
managed_containers.Add(containerName);
}

public void ReleaseManagedContainers()
{
foreach (string name in managed_containers)
{
if (running_containers.Contains(name))
{
running_containers.Remove(name);
}
}
}
}
}
54 changes: 54 additions & 0 deletions SpatialConnect.Entity/Container.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
using Newtonsoft.Json;
using System.Collections.Generic;

namespace SpatialConnect.Entity
{
public sealed class Container : BaseEntity
{
public int interval { get; set; }
public string name { get; set; }
public string format { get; set; }
public string geometry { get; set; }
public string push_dir { get; set; }
public string destination { get; set; }
public bool transform { get; set; }
public string source { get; set; }
public string board { get; set; }
public string view { get; set; }
public string source_username { get; set; }
public string source_password { get; set; }
public string output_file { get; set; }
public string path { get; set; }
public string type { get; set; }
public string file_in_archive { get; set; }
public string pull_dir { get; set; }
public string log_dir { get; set; }
public string temp_dir { get; set; }
public string license_type { get; set; }
public string where_clause { get; set; }
public bool use_relationships { get; set; }
public string relationships_dir { get; set; }
public string key { get; set; }
public int wkid { get; set; }
public bool update_only { get; set; }
public bool has_attachments { get; set; }

[JsonIgnore]
public bool working { get; set; }

[JsonIgnore]
public Fields Fields { get; set; }

[JsonIgnore]
public Config Config { get; set; }

[JsonIgnore]
public History PullHistory { get; set; }

[JsonIgnore]
public History PushHistory { get; set; }

[JsonIgnore]
public Relationships Relationships { get; set; }
}
}
11 changes: 11 additions & 0 deletions SpatialConnect.Entity/Fields.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System.Collections.Generic;

namespace SpatialConnect.Entity
{
public sealed class Fields
{
public string path { get; set; }
public string type { get; set; }
public List<Mapping> mappings { get; set; }
}
}
13 changes: 13 additions & 0 deletions SpatialConnect.Entity/History.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpatialConnect.Entity
{
public class History : BaseEntity
{
public List<string> uids { get; set; }
}
}
Loading

0 comments on commit 4f3ad8d

Please sign in to comment.