refactoring: --YavscLib-- => Yavsc

This commit is contained in:
2017-05-27 16:22:58 +02:00
parent e07c06b32e
commit 2a8b078024
102 changed files with 218 additions and 211 deletions

View 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;
}
}
}

View File

@ -0,0 +1,9 @@
namespace Yavsc.Models
{
public interface IBlackListed
{
long Id { get; set; }
string UserId { get; set; }
string OwnerId { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace Yavsc.Interfaces
{
public interface ICircle
{
long Id { get; set; }
string Name { get; set; }
string OwnerId { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace Yavsc
{
public interface ICoWorking
{
long Id {get; set; }
string PerformerId { get; set; }
string WorkingForId { get; set; }
}
}

View 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; }
}
}

View File

@ -0,0 +1,9 @@
namespace Yavsc
{
public interface IContact
{
IApplicationUser Owner { get; set; }
string OwnerId { get; set; }
string UserId { get; set; }
}
}

View 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; }
}
}

View 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; }
}
}

View File

@ -0,0 +1,8 @@
namespace Yavsc
{
public interface ILocation
{
string Address { get; set; }
long Id { get; set; }
}
}

View 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; }
}
}

View File

@ -0,0 +1,8 @@
namespace Yavsc
{
public interface IPosition
{
double Latitude { get; set; }
double Longitude { get; set; }
}
}

View 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; }
}
}

View 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; }
}
}

View File

@ -0,0 +1,8 @@
namespace Yavsc.Models
{
public interface IRequisition
{
bool Eval();
}
}

View File

@ -0,0 +1,7 @@
namespace Yavsc
{
public interface ISpecializationSettings
{
string UserId { get ; set ; }
}
}

View 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
}
}