Files
ProxyGenerator/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs
T
Stef Heyenrath 0e57de17c3 Use Mapster as mapper (#39)
* mapster

* ,

* .

* ...

* .

* .

* .

* .

* .

* .

* int

* .

* ;
2022-09-05 21:26:02 +02:00

96 lines
4.1 KiB
C#

//----------------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/ProxyInterfaceSourceGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------------------------------------------------------
#nullable enable
using System;
namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
{
public partial class ClientObjectProxy : IClientObject
{
public Microsoft.SharePoint.Client.ClientObject _Instance { get; }
public ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext Context { get => Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>(_Instance.Context); }
public object Tag { get => _Instance.Tag; set => _Instance.Tag = value; }
public Microsoft.SharePoint.Client.ObjectPath Path { get => _Instance.Path; }
public string ObjectVersion { get => _Instance.ObjectVersion; set => _Instance.ObjectVersion = value; }
public bool? ServerObjectIsNull { get => _Instance.ServerObjectIsNull; }
public ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject TypedObject { get => Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>(_Instance.TypedObject); }
public virtual void FromJson(Microsoft.SharePoint.Client.JsonReader reader)
{
Microsoft.SharePoint.Client.JsonReader reader_ = reader;
_Instance.FromJson(reader_);
}
public virtual bool CustomFromJson(Microsoft.SharePoint.Client.JsonReader reader)
{
Microsoft.SharePoint.Client.JsonReader reader_ = reader;
var result__636829107 = _Instance.CustomFromJson(reader_);
return result__636829107;
}
public void Retrieve()
{
_Instance.Retrieve();
}
public void Retrieve(params string[] propertyNames)
{
string[] propertyNames_ = propertyNames;
_Instance.Retrieve(propertyNames_);
}
public virtual void RefreshLoad()
{
_Instance.RefreshLoad();
}
public bool IsPropertyAvailable(string propertyName)
{
string propertyName_ = propertyName;
var result_1607091274 = _Instance.IsPropertyAvailable(propertyName_);
return result_1607091274;
}
public bool IsObjectPropertyInstantiated(string propertyName)
{
string propertyName_ = propertyName;
var result__181021484 = _Instance.IsObjectPropertyInstantiated(propertyName_);
return result__181021484;
}
public ClientObjectProxy(Microsoft.SharePoint.Client.ClientObject instance)
{
_Instance = instance;
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientRuntimeContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328));
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance);
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668));
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance);
}
}
}
#nullable disable