示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Owners EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOwners(Owner owner)
 {
     base.AddObject("Owners", owner);
 }
示例#2
0
 /// <summary>
 /// Create a new Owner object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="accessToken">Initial value of the AccessToken property.</param>
 /// <param name="refreshToken">Initial value of the RefreshToken property.</param>
 public static Owner CreateOwner(global::System.Guid id, global::System.String name, global::System.String accessToken, global::System.String refreshToken)
 {
     Owner owner = new Owner();
     owner.Id = id;
     owner.Name = name;
     owner.AccessToken = accessToken;
     owner.RefreshToken = refreshToken;
     return owner;
 }
示例#3
0
文件: Picasa.cs 项目: Sleeckx/Jamie
 public static PicasaService GetService(Owner o)
 {
     return new PicasaService(Manager.Current.GetSetting("AppName")) { RequestFactory = RefreshAuthenticate(o.AccessToken, o.RefreshToken) };
 }