refactoring: --YavscLib-- => Yavsc
This commit is contained in:
parent
724e0e17ef
commit
776b7dae21
102 changed files with 216 additions and 209 deletions
9
Yavsc.Abstract/Billing/IAccountBalance.cs
Normal file
9
Yavsc.Abstract/Billing/IAccountBalance.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IAccountBalance
|
||||
{
|
||||
long ContactCredits { get; set; }
|
||||
decimal Credits { get; set; }
|
||||
string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
13
Yavsc.Abstract/Billing/IBillItem.cs
Normal file
13
Yavsc.Abstract/Billing/IBillItem.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
namespace Yavsc.Billing
|
||||
{
|
||||
public interface IBillItem {
|
||||
string Name { get; set; }
|
||||
string Description { get; set; }
|
||||
int Count { get; set; }
|
||||
decimal UnitaryCost { get; set; }
|
||||
string Currency { get; set; }
|
||||
|
||||
string Reference { get; }
|
||||
|
||||
}
|
||||
}
|
||||
11
Yavsc.Abstract/Billing/IBillable.cs
Normal file
11
Yavsc.Abstract/Billing/IBillable.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Billing
|
||||
{
|
||||
public interface IBillable {
|
||||
string Description { get; set; }
|
||||
List<IBillItem> GetBillItems();
|
||||
long Id { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
8
Yavsc.Abstract/Billing/IBillingImpacter.cs
Normal file
8
Yavsc.Abstract/Billing/IBillingImpacter.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
namespace Yavsc.Billing
|
||||
{
|
||||
public interface IBillingImpacter {
|
||||
decimal Impact(decimal orgValue);
|
||||
|
||||
}
|
||||
}
|
||||
13
Yavsc.Abstract/Billing/ICommandLine.cs
Normal file
13
Yavsc.Abstract/Billing/ICommandLine.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
namespace Yavsc.Billing
|
||||
{
|
||||
|
||||
public interface ICommandLine : IBillItem
|
||||
{
|
||||
// FIXME too hard: no such generic name in any interface
|
||||
long Id { get; set; }
|
||||
|
||||
// FIXME too far: perhaps no existing estimate
|
||||
long EstimateId { get; set; }
|
||||
}
|
||||
}
|
||||
17
Yavsc.Abstract/Billing/IEstimate.cs
Normal file
17
Yavsc.Abstract/Billing/IEstimate.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
public interface IEstimate
|
||||
{
|
||||
List<string> AttachedFiles { get; set; }
|
||||
List<string> AttachedGraphics { get; }
|
||||
string ClientId { get; set; }
|
||||
long? CommandId { get; set; }
|
||||
string CommandType { get; set; }
|
||||
string Description { get; set; }
|
||||
long Id { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
string Title { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
13
Yavsc.Abstract/Blogspot/IBlog.cs
Normal file
13
Yavsc.Abstract/Blogspot/IBlog.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public interface IBlog : IBaseTrackedEntity, IIdentified<long>, IRating<long>, ITitle
|
||||
{
|
||||
string AuthorId { get; set; }
|
||||
string Content { get; set; }
|
||||
string Photo { get; set; }
|
||||
bool Visible { get; set; }
|
||||
}
|
||||
}
|
||||
12
Yavsc.Abstract/IBaseTrackedEntity.cs
Normal file
12
Yavsc.Abstract/IBaseTrackedEntity.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public interface IBaseTrackedEntity
|
||||
{
|
||||
DateTime DateCreated { get; set; }
|
||||
string UserCreated { get; set; }
|
||||
DateTime DateModified { get; set; }
|
||||
string UserModified { get; set; }
|
||||
}
|
||||
}
|
||||
36
Yavsc.Abstract/IIdentified.cs
Normal file
36
Yavsc.Abstract/IIdentified.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// IIdentified.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
/// <summary>
|
||||
/// I identified.
|
||||
/// </summary>
|
||||
public interface IIdentified<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
T Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
22
Yavsc.Abstract/IT/ICode.cs
Normal file
22
Yavsc.Abstract/IT/ICode.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public interface ILetter<T> : IEqualityComparer<T> {
|
||||
}
|
||||
public interface IWord<TLetter> where TLetter : ILetter<TLetter>
|
||||
{
|
||||
IWord<TLetter> Aggregate(TLetter other);
|
||||
}
|
||||
|
||||
public interface ICode<TLetter> : IEnumerable<TLetter> where TLetter : ILetter<TLetter>
|
||||
{
|
||||
/// <summary>
|
||||
/// Checks that (b!=c) => a.b != a.c
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool Validate();
|
||||
|
||||
IWord<TLetter> CreateWord(TLetter letter);
|
||||
}
|
||||
}
|
||||
28
Yavsc.Abstract/ITitle.cs
Normal file
28
Yavsc.Abstract/ITitle.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// ITitle.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
namespace Yavsc
|
||||
{
|
||||
public interface ITitle
|
||||
{
|
||||
string Title { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
12
Yavsc.Abstract/Identity/IApplicationUser.cs
Normal file
12
Yavsc.Abstract/Identity/IApplicationUser.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IApplicationUser
|
||||
{
|
||||
string Id { get; set; }
|
||||
string UserName { get; set; }
|
||||
string Avatar { get ; set; }
|
||||
IAccountBalance AccountBalance { get; set; }
|
||||
string DedicatedGoogleCalendar { get; set; }
|
||||
ILocation PostalAddress { get; set; }
|
||||
}
|
||||
}
|
||||
21
Yavsc.Abstract/Identity/IChatUserInfo.cs
Normal file
21
Yavsc.Abstract/Identity/IChatUserInfo.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
string ConnectionId { get; set; }
|
||||
string UserAgent { get; set; }
|
||||
bool Connected { get; set; }
|
||||
}
|
||||
|
||||
public interface IChatUserInfo
|
||||
{
|
||||
IConnection[] Connections { get; set; }
|
||||
string UserId { get; set; }
|
||||
|
||||
string UserName { get; set; }
|
||||
|
||||
string Avatar { get; set; }
|
||||
|
||||
string[] Roles { get; set; }
|
||||
}
|
||||
}
|
||||
8
Yavsc.Abstract/Identity/Security/ICircleAuthorization.cs
Normal file
8
Yavsc.Abstract/Identity/Security/ICircleAuthorization.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
|
||||
public interface ICircleAuthorization
|
||||
{
|
||||
long CircleId { get; set; }
|
||||
}
|
||||
}
|
||||
11
Yavsc.Abstract/Identity/Security/ICircleAuthorized.cs
Normal file
11
Yavsc.Abstract/Identity/Security/ICircleAuthorized.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface ICircleAuthorized
|
||||
{
|
||||
long Id { get; set; }
|
||||
string GetOwnerId ();
|
||||
bool AuthorizeCircle(long circleId);
|
||||
ICircleAuthorization [] GetACL();
|
||||
|
||||
}
|
||||
}
|
||||
21
Yavsc.Abstract/Identity/UserInfo.cs
Normal file
21
Yavsc.Abstract/Identity/UserInfo.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace Yavsc.Models.Auth
|
||||
{
|
||||
public class UserInfo {
|
||||
|
||||
public UserInfo()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public UserInfo(string userId, string userName, string avatar)
|
||||
{
|
||||
UserId = userId;
|
||||
UserName = userName;
|
||||
Avatar = avatar;
|
||||
}
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
}
|
||||
}
|
||||
1
Yavsc.Abstract/MarkdownParser.y
Normal file
1
Yavsc.Abstract/MarkdownParser.y
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
28
Yavsc.Abstract/Properties/AssemblyInfo.cs
Normal file
28
Yavsc.Abstract/Properties/AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using System.Resources;
|
||||
using System.Reflection;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Yavsc.Client")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Yavsc.Client")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: NeutralResourcesLanguage("en")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
35
Yavsc.Abstract/Workflow/IActivity.cs
Normal file
35
Yavsc.Abstract/Workflow/IActivity.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public interface IActivity
|
||||
{
|
||||
string Code { get; set; }
|
||||
string Name { get; set; }
|
||||
string ParentCode { get; set; }
|
||||
string Photo { get; set; }
|
||||
string Description { get; set; }
|
||||
string ModeratorGroupName { get; set; }
|
||||
int Rate { get; set; }
|
||||
string SettingsClassName { get; set; }
|
||||
DateTime DateCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
string UserCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
DateTime DateModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
string UserModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Yavsc.Abstract/Workflow/IBlackListed.cs
Normal file
9
Yavsc.Abstract/Workflow/IBlackListed.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc.Models
|
||||
{
|
||||
public interface IBlackListed
|
||||
{
|
||||
long Id { get; set; }
|
||||
string UserId { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
9
Yavsc.Abstract/Workflow/ICircle.cs
Normal file
9
Yavsc.Abstract/Workflow/ICircle.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface ICircle
|
||||
{
|
||||
long Id { get; set; }
|
||||
string Name { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
10
Yavsc.Abstract/Workflow/ICoWorking.cs
Normal file
10
Yavsc.Abstract/Workflow/ICoWorking.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface ICoWorking
|
||||
{
|
||||
long Id {get; set; }
|
||||
string PerformerId { get; set; }
|
||||
string WorkingForId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
11
Yavsc.Abstract/Workflow/ICommandForm.cs
Normal file
11
Yavsc.Abstract/Workflow/ICommandForm.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface ICommandForm
|
||||
{
|
||||
long Id { get; set; }
|
||||
string ActionName { get; set; }
|
||||
string Title { get; set; }
|
||||
string ActivityCode { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
9
Yavsc.Abstract/Workflow/IContact.cs
Normal file
9
Yavsc.Abstract/Workflow/IContact.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IContact
|
||||
{
|
||||
IApplicationUser Owner { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
22
Yavsc.Abstract/Workflow/IEvent.cs
Normal file
22
Yavsc.Abstract/Workflow/IEvent.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
namespace Yavsc.Interfaces.Workflow {
|
||||
public interface IEvent {
|
||||
/// <summary>
|
||||
/// <c>/topic/(bookquery|estimate)</c>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string Topic { get; set ; }
|
||||
/// <summary>
|
||||
/// Should be the user's name
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string Sender { get; set ; }
|
||||
/// <summary>
|
||||
/// The message
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string Message { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
38
Yavsc.Abstract/Workflow/IGoogleCloudMobileDeclaration.cs
Normal file
38
Yavsc.Abstract/Workflow/IGoogleCloudMobileDeclaration.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright (C) 2016 Paul Schneider
|
||||
//
|
||||
// This file is part of yavsc.
|
||||
//
|
||||
// yavsc is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// yavsc is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with yavsc. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public interface IGCMDeclaration
|
||||
{
|
||||
string DeviceId { get; set; }
|
||||
string GCMRegistrationId { get; set; }
|
||||
string Model { get; set; }
|
||||
string Platform { get; set; }
|
||||
string Version { get; set; }
|
||||
DateTime? LatestActivityUpdate { get; set; }
|
||||
}
|
||||
|
||||
public interface IGoogleCloudMobileDeclaration: IGCMDeclaration
|
||||
{
|
||||
IApplicationUser DeviceOwner { get; set; }
|
||||
string DeviceOwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
8
Yavsc.Abstract/Workflow/ILocation.cs
Normal file
8
Yavsc.Abstract/Workflow/ILocation.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface ILocation
|
||||
{
|
||||
string Address { get; set; }
|
||||
long Id { get; set; }
|
||||
}
|
||||
}
|
||||
17
Yavsc.Abstract/Workflow/IPerformerProfile.cs
Normal file
17
Yavsc.Abstract/Workflow/IPerformerProfile.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
namespace Yavsc.Workflow
|
||||
{
|
||||
public interface IPerformerProfile
|
||||
{
|
||||
string PerformerId { get; set; }
|
||||
string SIREN { get; set; }
|
||||
bool AcceptNotifications { get; set; }
|
||||
long OrganizationAddressId { get; set; }
|
||||
bool AcceptPublicContact { get; set; }
|
||||
bool UseGeoLocalizationToReduceDistanceWithClients { get; set; }
|
||||
string WebSite { get; set; }
|
||||
bool Active { get; set; }
|
||||
int? MaxDailyCost { get; set; }
|
||||
int? MinDailyCost { get; set; }
|
||||
int Rate { get; set; }
|
||||
}
|
||||
}
|
||||
8
Yavsc.Abstract/Workflow/IPosition.cs
Normal file
8
Yavsc.Abstract/Workflow/IPosition.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IPosition
|
||||
{
|
||||
double Latitude { get; set; }
|
||||
double Longitude { get; set; }
|
||||
}
|
||||
}
|
||||
11
Yavsc.Abstract/Workflow/IQuery.cs
Normal file
11
Yavsc.Abstract/Workflow/IQuery.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Yavsc.Workflow
|
||||
{
|
||||
using Yavsc;
|
||||
using Yavsc.Billing;
|
||||
|
||||
public interface IQuery: IBaseTrackedEntity, IBillable
|
||||
{
|
||||
QueryStatus Status { get; set; }
|
||||
string PaymentId { get; set; }
|
||||
}
|
||||
}
|
||||
37
Yavsc.Abstract/Workflow/IRating.cs
Normal file
37
Yavsc.Abstract/Workflow/IRating.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
//
|
||||
// IIdentified.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// I rating.
|
||||
/// </summary>
|
||||
public interface IRating<TK>: IIdentified<TK>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the rate.
|
||||
/// </summary>
|
||||
/// <value>The rate.</value>
|
||||
int Rate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
8
Yavsc.Abstract/Workflow/IRequisition.cs
Normal file
8
Yavsc.Abstract/Workflow/IRequisition.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public interface IRequisition
|
||||
{
|
||||
bool Eval();
|
||||
}
|
||||
}
|
||||
7
Yavsc.Abstract/Workflow/ISpecializationSettings.cs
Normal file
7
Yavsc.Abstract/Workflow/ISpecializationSettings.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface ISpecializationSettings
|
||||
{
|
||||
string UserId { get ; set ; }
|
||||
}
|
||||
}
|
||||
22
Yavsc.Abstract/Workflow/QueryStatus.cs
Normal file
22
Yavsc.Abstract/Workflow/QueryStatus.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
/// <summary>
|
||||
/// Status,
|
||||
/// should be associated to any
|
||||
/// client user query to a provider user or
|
||||
/// other external entity.
|
||||
/// </summary>
|
||||
public enum QueryStatus: int
|
||||
{
|
||||
Inserted,
|
||||
OwnerValidated,
|
||||
Visited,
|
||||
Rejected,
|
||||
Accepted,
|
||||
InProgress,
|
||||
|
||||
// final states
|
||||
Failed,
|
||||
Success
|
||||
}
|
||||
}
|
||||
127
Yavsc.Abstract/YavscLib.csproj
Normal file
127
Yavsc.Abstract/YavscLib.csproj
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{67F9D3A8-F71E-4428-913F-C37AE82CDB24}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Yavsc</RootNamespace>
|
||||
<AssemblyName>Yavsc.Abstract</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Lua|AnyCPU'">
|
||||
<OutputPath>bin\Lua\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ZicMoove|AnyCPU'">
|
||||
<OutputPath>bin\ZicMoove\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Yavsc|AnyCPU'">
|
||||
<OutputPath>bin\Yavsc\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WinDev|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\WinDev\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="IBaseTrackedEntity.cs" />
|
||||
<Compile Include="IIdentified.cs" />
|
||||
<Compile Include="ITitle.cs" />
|
||||
<Compile Include="Billing\IAccountBalance.cs" />
|
||||
<Compile Include="Billing\IBillable.cs" />
|
||||
<Compile Include="Billing\IBillingImpacter.cs" />
|
||||
<Compile Include="Billing\IBillItem.cs" />
|
||||
<Compile Include="Billing\ICommandLine.cs" />
|
||||
<Compile Include="Billing\IEstimate.cs" />
|
||||
<Compile Include="Workflow\IRating.cs" />
|
||||
<Compile Include="Blogspot\IBlog.cs" />
|
||||
<Compile Include="Identity\IApplicationUser.cs" />
|
||||
<Compile Include="Identity\IChatUserInfo.cs" />
|
||||
<Compile Include="Identity\Security\ICircleAuthorization.cs" />
|
||||
<Compile Include="Identity\Security\ICircleAuthorized.cs" />
|
||||
<Compile Include="IT\ICode.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Workflow\IActivity.cs" />
|
||||
<Compile Include="Workflow\IBlackListed.cs" />
|
||||
<Compile Include="Workflow\ICommandForm.cs" />
|
||||
<Compile Include="Workflow\IContact.cs" />
|
||||
<Compile Include="Workflow\ICoWorking.cs" />
|
||||
<Compile Include="Workflow\IGoogleCloudMobileDeclaration.cs" />
|
||||
<Compile Include="Workflow\ILocation.cs" />
|
||||
<Compile Include="Workflow\IPerformerProfile.cs" />
|
||||
<Compile Include="Workflow\IPosition.cs" />
|
||||
<Compile Include="Workflow\ISpecializationSettings.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="MarkdownParser.y" />
|
||||
<None Include="packages.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="project.json" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>Ce projet fait référence à des packages NuGet qui sont manquants sur cet ordinateur. Utilisez l'option de restauration des packages NuGet pour les télécharger. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkID=322105. Le fichier manquant est : {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
6
Yavsc.Abstract/YavscLib.nuget.targets
Normal file
6
Yavsc.Abstract/YavscLib.nuget.targets
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Target Name="EmitMSBuildWarning" BeforeTargets="Build">
|
||||
<Warning Text="Les packages contenant des cibles et des fichiers de propriétés MSBuild ne peuvent pas être installés complètement dans des projets ciblant plusieurs infrastructures. Les cibles et les fichiers de propriétés MSBuild ont été ignorés." />
|
||||
</Target>
|
||||
</Project>
|
||||
17
Yavsc.Abstract/YavscLib.sln
Normal file
17
Yavsc.Abstract/YavscLib.sln
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YavscLib", "YavscLib.csproj", "{67F9D3A8-F71E-4428-913F-C37AE82CDB24}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{67F9D3A8-F71E-4428-913F-C37AE82CDB24}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
11
Yavsc.Abstract/app.config
Normal file
11
Yavsc.Abstract/app.config
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
3
Yavsc.Abstract/packages.config
Normal file
3
Yavsc.Abstract/packages.config
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
</packages>
|
||||
25
Yavsc.Abstract/project.json
Normal file
25
Yavsc.Abstract/project.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "Yavsc Client Api",
|
||||
"authors": [
|
||||
"Paul Schneider"
|
||||
],
|
||||
"tags": [
|
||||
""
|
||||
],
|
||||
"projectUrl": "",
|
||||
"licenseUrl": "",
|
||||
"tooling": {
|
||||
"defaultNamespace": "Yavsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"Newtonsoft.Json": "10.0.2"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.ComponentModel.DataAnnotations": "4.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
76
Yavsc.Abstract/project.lock.json
Normal file
76
Yavsc.Abstract/project.lock.json
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"locked": false,
|
||||
"version": 2,
|
||||
"targets": {
|
||||
".NETFramework,Version=v4.5.1": {
|
||||
"Newtonsoft.Json/10.0.2": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net45/Newtonsoft.Json.dll": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net45/Newtonsoft.Json.dll": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
".NETFramework,Version=v4.5.1/debian.8-x86": {
|
||||
"Newtonsoft.Json/10.0.2": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net45/Newtonsoft.Json.dll": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net45/Newtonsoft.Json.dll": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
".NETFramework,Version=v4.5.1/debian.8-x64": {
|
||||
"Newtonsoft.Json/10.0.2": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net45/Newtonsoft.Json.dll": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net45/Newtonsoft.Json.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Newtonsoft.Json/10.0.2": {
|
||||
"type": "package",
|
||||
"sha512": "iwElSU2IXmwGvytJsezyDML2ZWDkG2JzTYzlU/BNlmzMdlmRvbnwITsGGY74gwVEpDli1UdOLkMT7/3jxWvXzA==",
|
||||
"files": [
|
||||
"lib/net20/Newtonsoft.Json.dll",
|
||||
"lib/net20/Newtonsoft.Json.xml",
|
||||
"lib/net35/Newtonsoft.Json.dll",
|
||||
"lib/net35/Newtonsoft.Json.xml",
|
||||
"lib/net40/Newtonsoft.Json.dll",
|
||||
"lib/net40/Newtonsoft.Json.xml",
|
||||
"lib/net45/Newtonsoft.Json.dll",
|
||||
"lib/net45/Newtonsoft.Json.xml",
|
||||
"lib/netstandard1.0/Newtonsoft.Json.dll",
|
||||
"lib/netstandard1.0/Newtonsoft.Json.xml",
|
||||
"lib/netstandard1.3/Newtonsoft.Json.dll",
|
||||
"lib/netstandard1.3/Newtonsoft.Json.xml",
|
||||
"lib/portable-net40+sl5+win8+wpa81+wp8/Newtonsoft.Json.dll",
|
||||
"lib/portable-net40+sl5+win8+wpa81+wp8/Newtonsoft.Json.xml",
|
||||
"lib/portable-net45+win8+wpa81+wp8/Newtonsoft.Json.dll",
|
||||
"lib/portable-net45+win8+wpa81+wp8/Newtonsoft.Json.xml",
|
||||
"LICENSE.md",
|
||||
"Newtonsoft.Json.10.0.2.nupkg",
|
||||
"Newtonsoft.Json.10.0.2.nupkg.sha512",
|
||||
"Newtonsoft.Json.nuspec",
|
||||
"tools/install.ps1"
|
||||
]
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"": [
|
||||
"Newtonsoft.Json >= 10.0.2"
|
||||
],
|
||||
".NETFramework,Version=v4.5.1": [
|
||||
"fx/System.ComponentModel.DataAnnotations >= 4.0.0"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue