Skip to content

Commit

Permalink
ana (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu authored Mar 23, 2023
1 parent 54afe94 commit 57ce5ea
Show file tree
Hide file tree
Showing 8 changed files with 423 additions and 21 deletions.
27 changes: 7 additions & 20 deletions src/ix.connectors/src/Ix.Connector/ITwinObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,39 +76,26 @@ public interface ITwinObject : ITwinElement
/// Reads online data and retrieved POCO object populated with actual online data.
/// </summary>
/// <returns>POCO with online data of this object</returns>
/// <exception cref="NotImplementedException"></exception>
public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}
Task<T> OnlineToPlain<T>();


/// <summary>
/// Writes data from POCO object to online data (PLC)
/// </summary>
/// <param name="plain">POCO object to be written to the controller.</param>
/// <exception cref="NotImplementedException"></exception>
public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}
Task PlainToOnline<T>(T plain);


/// <summary>
/// Read data from shadows of this object to a new instance of a POCO object.
/// </summary>
/// <returns>POCO object populated by data from the shadows of this object.</returns>
/// <exception cref="NotImplementedException"></exception>
public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}
Task<T> ShadowToPlain<T>();


/// <summary>
/// Writes data from POCO object to shadow data of this object.
/// </summary>
/// <param name="plain">POCO object to be written to the shadows of this object.</param>
/// <exception cref="NotImplementedException"></exception>
public Task<T> PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}
Task PlainToShadow<T>(T plain);
}
21 changes: 21 additions & 0 deletions src/ix.connectors/src/Ix.Connector/RootTwinObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Ix.Connector.ValueTypes;

namespace Ix.Connector;
Expand Down Expand Up @@ -123,6 +124,26 @@ public Connector GetConnector()
return this as Connector;
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public object OnlineToPlain()
{
throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Ix.Connector.S71500.WebApi;
using Xunit;

Expand Down Expand Up @@ -82,6 +83,26 @@ public Connector GetConnector()
{
return new DummyConnector();
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,26 @@ public Connector GetConnector()
throw new NotImplementedException();
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public object OnlineToPlain()
{
throw new NotImplementedException();
Expand Down Expand Up @@ -296,6 +316,26 @@ public Connector GetConnector()
throw new NotImplementedException();
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public object OnlineToPlain()
{
throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,26 @@ public Connector GetConnector()
throw new NotImplementedException();
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public object OnlineToPlain()
{
throw new NotImplementedException();
Expand Down Expand Up @@ -230,6 +250,26 @@ public Connector GetConnector()
throw new NotImplementedException();
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public object OnlineToPlain()
{
throw new NotImplementedException();
Expand Down Expand Up @@ -345,6 +385,26 @@ public Connector GetConnector()
throw new NotImplementedException();
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public object OnlineToPlain()
{
throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Ix.Localizations;
using Ix.Localizations.Abstractions;

Expand Down Expand Up @@ -49,6 +50,26 @@ public Connector GetConnector()
return dummyConnector;
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public object OnlineToPlain()
{
throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,26 @@ public Connector GetConnector()
throw new NotImplementedException();
}

public Task<T> OnlineToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToOnline<T>(T plain)
{
throw new NotImplementedException();
}

public Task<T> ShadowToPlain<T>()
{
throw new NotImplementedException();
}

public Task PlainToShadow<T>(T plain)
{
throw new NotImplementedException();
}

public MyTestPoco CreateEmptyPoco()
{
return new MyTestPoco();
Expand Down
Loading

0 comments on commit 57ce5ea

Please sign in to comment.