* Web.config:
* Web.csproj: * instdbws.sql: * packages.config: * TestByteA.cs: * App.master: * MyClass.cs: * LocalizedText.resx: * Index.aspx: * LocalizedText.fr.resx: * packages.config: * Details.aspx: * packages.config: * packages.config: * packages.config: * EventPub.aspx: * LocalizedText.Designer.cs: * FileSystemController.cs: * FrontOfficeController.cs: * NpgsqlContentProvider.cs: * ITContentProvider.csproj: * FileSystemManager.cs: * Circle.cs: * YaEvent.cs: * NpgsqlBlogProvider.csproj: * NpgsqlMRPProviders.csproj: * EventPub.cs: * NpgsqlContentProvider.csproj: * EventType.cs: * UserPrefs.cs: * CalendarController.cs: * EstablishmentType.cs: * ITCPNpgsqlProvider.cs: * NpgsqlBlogProvider.cs: * NpgsqlRoleProvider.cs: * NpgsqlProfileProvider.cs: * NpgsqlMembershipProvider.cs: Npgsql Command.Parameters.Add is obsolete * Commande.cs: FileSystem ctor needs a format parameter in order to use path by membership * google-services.json: intented to be used to build android application able to receive push notification via GCM
This commit is contained in:
parent
04304ac0c3
commit
31734da129
39 changed files with 777 additions and 469 deletions
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// NightFlashController.cs
|
||||
// Circle.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
|
|
@ -21,13 +21,42 @@
|
|||
using System;
|
||||
using System.Web.Http;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.ApiControllers.Calendar.Model
|
||||
{
|
||||
class Circle
|
||||
/// <summary>
|
||||
/// Circle.
|
||||
/// </summary>
|
||||
public class Circle
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the title.
|
||||
/// </summary>
|
||||
/// <value>The title.</value>
|
||||
public string Title { get; set; }
|
||||
string [] Users { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the users.
|
||||
/// </summary>
|
||||
/// <value>The users.</value>
|
||||
public string [] Users { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Union the specified that.
|
||||
/// </summary>
|
||||
/// <param name="that">That.</param>
|
||||
public static string [] Union (Circle []those)
|
||||
{
|
||||
List<string> content = new List<string>();
|
||||
foreach (Circle c in those) {
|
||||
foreach (string user_name in c.Users) {
|
||||
if (!content.Contains (user_name))
|
||||
content.Add (user_name);
|
||||
}
|
||||
}
|
||||
return content.ToArray ();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,62 +0,0 @@
|
|||
//
|
||||
// NFEvent.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2015 Paul Schneider
|
||||
//
|
||||
// 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/>.
|
||||
|
||||
using System;
|
||||
using System.Web.Http;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.ApiControllers.Calendar.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Establishment type.
|
||||
/// </summary>
|
||||
public enum EstablishmentType
|
||||
{
|
||||
/// <summary>
|
||||
/// The discotheque.
|
||||
/// </summary>
|
||||
Discotheque,
|
||||
/// <summary>
|
||||
/// The piano bar.
|
||||
/// </summary>
|
||||
PianoBar,
|
||||
/// <summary>
|
||||
/// The bar.
|
||||
/// </summary>
|
||||
Bar,
|
||||
/// <summary>
|
||||
/// The place publique.
|
||||
/// </summary>
|
||||
PlacePublique,
|
||||
/// <summary>
|
||||
/// The maison privee.
|
||||
/// </summary>
|
||||
MaisonPrivee,
|
||||
/// <summary>
|
||||
/// The domaine publique.
|
||||
/// </summary>
|
||||
DomainePublique,
|
||||
/// <summary>
|
||||
/// The domaine prive.
|
||||
/// </summary>
|
||||
DomainePrive
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// NightFlashController.cs
|
||||
// EventPub.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
|
|
@ -22,12 +22,21 @@ using System;
|
|||
using System.Web.Http;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Yavsc.ApiControllers.Calendar.Model;
|
||||
using Yavsc.Model;
|
||||
|
||||
namespace Yavsc.ApiControllers.Calendar.Model
|
||||
{
|
||||
class EventPub: YaEvent
|
||||
/// <summary>
|
||||
/// Event pub.
|
||||
/// </summary>
|
||||
public class EventPub: YaEvent
|
||||
{
|
||||
Circle[] Circles { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the circles.
|
||||
/// </summary>
|
||||
/// <value>The circles.</value>
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="Circles")]
|
||||
public Circle[] Circles { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,71 +0,0 @@
|
|||
//
|
||||
// EventType.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2015 Paul Schneider
|
||||
//
|
||||
// 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/>.
|
||||
|
||||
using System;
|
||||
using System.Web.Http;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.ApiControllers.Calendar.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Event type.
|
||||
/// </summary>
|
||||
public enum EventType
|
||||
{
|
||||
/// <summary>
|
||||
/// The concert gratuit.
|
||||
/// </summary>
|
||||
ConcertGratuit,
|
||||
/// <summary>
|
||||
/// The concert prive.
|
||||
/// </summary>
|
||||
ConcertPrive,
|
||||
/// <summary>
|
||||
/// The distraciton.
|
||||
/// </summary>
|
||||
Distraciton,
|
||||
/// <summary>
|
||||
/// The rencontre.
|
||||
/// </summary>
|
||||
Rencontre,
|
||||
/// <summary>
|
||||
/// The assemblee.
|
||||
/// </summary>
|
||||
Assemblee,
|
||||
/// <summary>
|
||||
/// The reunion.
|
||||
/// </summary>
|
||||
Reunion,
|
||||
/// <summary>
|
||||
/// The bureau.
|
||||
/// </summary>
|
||||
Bureau,
|
||||
/// <summary>
|
||||
/// The manifestation.
|
||||
/// </summary>
|
||||
Manifestation,
|
||||
/// <summary>
|
||||
/// The zone de danger.
|
||||
/// </summary>
|
||||
ZoneDeDanger
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// NightFlashController.cs
|
||||
// UserPrefs.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
|
|
@ -28,7 +28,7 @@ namespace Yavsc.ApiControllers.Calendar.Model
|
|||
class UserPrefs
|
||||
{
|
||||
Circle [] Circles { get; set ; }
|
||||
Dictionary<string,double> MusicTypeRatings { get; set; }
|
||||
Dictionary<string,double> EventTypeRatings { get; set; }
|
||||
Dictionary<string,double> LocationTypeRatings { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
using System;
|
||||
using System.Web.Http;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Yavsc.Model;
|
||||
|
||||
namespace Yavsc.ApiControllers.Calendar.Model
|
||||
{
|
||||
|
|
@ -31,71 +32,65 @@ namespace Yavsc.ApiControllers.Calendar.Model
|
|||
/// </summary>
|
||||
public class YaEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Yavsc.ApiControllers.Calendar.Model.YaEvent"/> class.
|
||||
/// </summary>
|
||||
public YaEvent()
|
||||
{
|
||||
this.EstabType = EstablishmentType.DomainePublique;
|
||||
this.NFEvType = EventType.Distraciton;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the NF ev.
|
||||
/// </summary>
|
||||
/// <value>The type of the NF ev.</value>
|
||||
[Required]
|
||||
public EventType NFEvType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the estab.
|
||||
/// </summary>
|
||||
/// <value>The type of the estab.</value>
|
||||
[Required(ErrorMessage="Please, choose an establisment type.")]
|
||||
public EstablishmentType EstabType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage="Please, choose a .")]
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="Title")]
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// The description.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage="Please, choose a Description.")] public string Description { get; set; }
|
||||
[Required(ErrorMessage="Please, choose a Description.")]
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="Description")]
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// The location.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage="Please, choose a Location.")] public Position Location { get; set; }
|
||||
[Required(ErrorMessage="Please, choose a Location.")]
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="Location")]
|
||||
public Position Location { get; set; }
|
||||
/// <summary>
|
||||
/// The start date.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage="Please, choose a Start Date.")] public DateTime StartDate { get; set; }
|
||||
[Required(ErrorMessage="Please, choose a Start Date.")]
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="StartDate")]
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the end date.
|
||||
/// </summary>
|
||||
/// <value>The end date.</value>
|
||||
[Required(ErrorMessage="Please, choose an End Date.")] public DateTime EndDate { get; set; }
|
||||
[Required(ErrorMessage="Please, choose an End Date.")]
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="EndDate")]
|
||||
public DateTime EndDate { get; set; }
|
||||
/// <summary>
|
||||
/// The name of the NF provider.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage="Please, choose a Nigth Flash Provider Name.")] public string NFProviderName { get; set; }
|
||||
[Required(ErrorMessage="Please, choose a Provider Name.")]
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="ProviderName")]
|
||||
public string ProviderName { get; set; }
|
||||
/// <summary>
|
||||
/// The NF provider identifier.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage="Please, choose a Night Flash Provider Identifier.")] public string NFProviderId { get; set; }
|
||||
[Required(ErrorMessage="Please, choose a Provider Identifier.")]
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="ProviderId")]
|
||||
public string ProviderId { get; set; }
|
||||
/// <summary>
|
||||
/// The promotion code.
|
||||
/// </summary>
|
||||
public string PromotionCode { get; set; }
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="Comment")]
|
||||
public string Comment { get; set; }
|
||||
/// <summary>
|
||||
/// The event web page.
|
||||
/// </summary>
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="EventWebPage")]
|
||||
public string EventWebPage { get; set; }
|
||||
/// <summary>
|
||||
/// The image locator.
|
||||
/// </summary>-
|
||||
/// </summary>
|
||||
[Display(ResourceType=typeof(LocalizedText),Name="ImgLocator")]
|
||||
public string ImgLocator { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue