WIP périfériques utilisateur

vnext
Paul Schneider 8 years ago
parent 2b5951fd4a
commit 56ddfa03de
3 changed files with 22 additions and 7 deletions

@ -21,6 +21,9 @@ namespace Yavsc.Models
[InverseProperty("Owner")]
public virtual List<Contact> Book { get; set; }
[InverseProperty("DeviceOwner")]
public virtual List<GoogleCloudMobileDeclaration> Devices { get; set; }
[InverseProperty("Owner")]
public virtual List<Circle> Circles { get; set; }

@ -1,13 +1,15 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models;
public class GoogleCloudMobileDeclaration {
[Key]
public string RegistrationId { get; set; }
public string AuthToken { get; set; }
public string AuthType { get; set; }
public string DeviceOwnerId { get; set; }
[ForeignKeyAttribute("DeviceOwnerId")]
public virtual ApplicationUser DeviceOwner { get; set; }
}

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AspNet.Security.OpenIdConnect.Extensions;
@ -122,7 +123,16 @@ namespace Yavsc.Providers {
context.Validated();
}
/// <summary>
/// List provided offline access tokens, to a given
/// user by its id
/// </summary>
/// <param name="userid"></param>
/// <returns></returns>
public List<string> GetOfflineTokens(string userid) {
throw new NotImplementedException();
}
}
}
Loading…