-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement websocket ids-no-names (take 2) in c#
- Loading branch information
Showing
13 changed files
with
296 additions
and
77 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
examples~/quickstart/client/module_bindings/IdentityConnectedReducer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE | ||
// WILL NOT BE SAVED. MODIFY TABLES IN RUST INSTEAD. | ||
// <auto-generated /> | ||
|
||
#nullable enable | ||
|
||
using System; | ||
using SpacetimeDB; | ||
|
||
namespace SpacetimeDB.Types | ||
{ | ||
[SpacetimeDB.Type] | ||
public partial class IdentityConnected : IReducerArgs | ||
{ | ||
string IReducerArgs.ReducerName => "__identity_connected__"; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
examples~/quickstart/client/module_bindings/IdentityDisconnectedReducer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE | ||
// WILL NOT BE SAVED. MODIFY TABLES IN RUST INSTEAD. | ||
// <auto-generated /> | ||
|
||
#nullable enable | ||
|
||
using System; | ||
using SpacetimeDB; | ||
|
||
namespace SpacetimeDB.Types | ||
{ | ||
[SpacetimeDB.Type] | ||
public partial class IdentityDisconnected : IReducerArgs | ||
{ | ||
string IReducerArgs.ReducerName => "__identity_disconnected__"; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
examples~/quickstart/client/module_bindings/InitReducer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE | ||
// WILL NOT BE SAVED. MODIFY TABLES IN RUST INSTEAD. | ||
// <auto-generated /> | ||
|
||
#nullable enable | ||
|
||
using System; | ||
using SpacetimeDB; | ||
|
||
namespace SpacetimeDB.Types | ||
{ | ||
[SpacetimeDB.Type] | ||
public partial class Init : IReducerArgs | ||
{ | ||
string IReducerArgs.ReducerName => "__init__"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#nullable enable | ||
|
||
using System; | ||
using SpacetimeDB; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace SpacetimeDB.ClientApi | ||
{ | ||
[SpacetimeDB.Type] | ||
[DataContract] | ||
public partial class AfterConnecting | ||
{ | ||
[DataMember(Name = "identity_token")] | ||
public SpacetimeDB.ClientApi.IdentityToken IdentityToken; | ||
[DataMember(Name = "ids_to_names")] | ||
public SpacetimeDB.ClientApi.IdsToNames IdsToNames; | ||
|
||
public AfterConnecting( | ||
SpacetimeDB.ClientApi.IdentityToken IdentityToken, | ||
SpacetimeDB.ClientApi.IdsToNames IdsToNames | ||
) | ||
{ | ||
this.IdentityToken = IdentityToken; | ||
this.IdsToNames = IdsToNames; | ||
} | ||
|
||
public AfterConnecting() | ||
{ | ||
this.IdentityToken = new(); | ||
this.IdsToNames = new(); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#nullable enable | ||
|
||
using System; | ||
using SpacetimeDB; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace SpacetimeDB.ClientApi | ||
{ | ||
[SpacetimeDB.Type] | ||
[DataContract] | ||
public partial class IdsToNames | ||
{ | ||
[DataMember(Name = "reducer_ids")] | ||
public System.Collections.Generic.List<uint> ReducerIds; | ||
[DataMember(Name = "reducer_names")] | ||
public System.Collections.Generic.List<string> ReducerNames; | ||
[DataMember(Name = "table_ids")] | ||
public System.Collections.Generic.List<uint> TableIds; | ||
[DataMember(Name = "table_names")] | ||
public System.Collections.Generic.List<string> TableNames; | ||
|
||
public IdsToNames( | ||
System.Collections.Generic.List<uint> ReducerIds, | ||
System.Collections.Generic.List<string> ReducerNames, | ||
System.Collections.Generic.List<uint> TableIds, | ||
System.Collections.Generic.List<string> TableNames | ||
) | ||
{ | ||
this.ReducerIds = ReducerIds; | ||
this.ReducerNames = ReducerNames; | ||
this.TableIds = TableIds; | ||
this.TableNames = TableNames; | ||
} | ||
|
||
public IdsToNames() | ||
{ | ||
ReducerIds = new(); | ||
ReducerNames = new(); | ||
TableIds = new(); | ||
TableNames = new(); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.