Mercurial > hg > Database > Christie-sharp
diff datagear/command/ReplyCommand.cs @ 16:7352793b5dbe
add some Commands
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 22 Nov 2020 01:52:22 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datagear/command/ReplyCommand.cs Sun Nov 22 01:52:22 2020 +0900 @@ -0,0 +1,16 @@ +namespace Christie_net.datagear.command { +public class ReplyCommand : PutCommand { + + public ReplyCommand(CommandBuilder cb) : base(cb) { + } + + // 自身を書き込み実行させる + public override void Execute() { + connection.Write(this); + } + + public void SetData(object data) { + this.dg.SetData(data); + } +} +} \ No newline at end of file