refactoring: --YavscLib-- => Yavsc
This commit is contained in:
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user