WIP périfériques utilisateur
This commit is contained in:
parent
2b5951fd4a
commit
56ddfa03de
3 changed files with 22 additions and 7 deletions
|
|
@ -21,6 +21,9 @@ namespace Yavsc.Models
|
||||||
[InverseProperty("Owner")]
|
[InverseProperty("Owner")]
|
||||||
public virtual List<Contact> Book { get; set; }
|
public virtual List<Contact> Book { get; set; }
|
||||||
|
|
||||||
|
[InverseProperty("DeviceOwner")]
|
||||||
|
public virtual List<GoogleCloudMobileDeclaration> Devices { get; set; }
|
||||||
|
|
||||||
[InverseProperty("Owner")]
|
[InverseProperty("Owner")]
|
||||||
|
|
||||||
public virtual List<Circle> Circles { get; set; }
|
public virtual List<Circle> Circles { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,15 @@
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using Yavsc.Models;
|
||||||
|
|
||||||
public class GoogleCloudMobileDeclaration {
|
public class GoogleCloudMobileDeclaration {
|
||||||
|
|
||||||
[Key]
|
[Key]
|
||||||
|
|
||||||
public string RegistrationId { get; set; }
|
public string RegistrationId { get; set; }
|
||||||
|
|
||||||
public string AuthToken { get; set; }
|
public string DeviceOwnerId { get; set; }
|
||||||
|
|
||||||
public string AuthType { get; set; }
|
[ForeignKeyAttribute("DeviceOwnerId")]
|
||||||
|
public virtual ApplicationUser DeviceOwner { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using AspNet.Security.OpenIdConnect.Extensions;
|
using AspNet.Security.OpenIdConnect.Extensions;
|
||||||
|
|
@ -122,7 +123,16 @@ namespace Yavsc.Providers {
|
||||||
|
|
||||||
context.Validated();
|
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…
Add table
Add a link
Reference in a new issue