Skip to content

Commit

Permalink
別ファイルに独立させるのをし忘れていたので対応
Browse files Browse the repository at this point in the history
  • Loading branch information
r-koubou committed Nov 29, 2023
1 parent 88bc23e commit 94c6b4d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
using System;
using System.Collections.Generic;

using KeySwitchManager.Domain.KeySwitches.Models;
using KeySwitchManager.UseCase.Commons;

namespace KeySwitchManager.UseCase.KeySwitches.Export
{
public class ExportOutputValue
{
public ExportInputValue Input { get; }
public IReadOnlyCollection<KeySwitch> Result { get; }
public int WrittenCount { get; }

public ExportOutputValue( ExportInputValue input, IReadOnlyCollection<KeySwitch> result )
{
Input = input;
Result = result;
WrittenCount = result.Count;
}
}

public class ExportOutputData : OutputData<ExportOutputValue>
{
public ExportOutputData( bool result, ExportOutputValue value, Exception? error = null ) : base( result, value, error ) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System.Collections.Generic;

using KeySwitchManager.Domain.KeySwitches.Models;

namespace KeySwitchManager.UseCase.KeySwitches.Export
{
public class ExportOutputValue
{
public ExportInputValue Input { get; }
public IReadOnlyCollection<KeySwitch> Result { get; }
public int WrittenCount { get; }

public ExportOutputValue( ExportInputValue input, IReadOnlyCollection<KeySwitch> result )
{
Input = input;
Result = result;
WrittenCount = result.Count;
}
}
}

0 comments on commit 94c6b4d

Please sign in to comment.