Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Minimum Refectoring #2

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Samurai/Components/ApiManager.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "System" reference instruction must be defined at the top of the code file.

using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using AcidChicken.Samurai.Models;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Newtonsoft.Json;

namespace AcidChicken.Samurai.Components
{
using static Program;
using Models;
public static class ApiManager
{
public static async Task<Ticker> GetTickerAsync(string id, string convert = null)
Expand Down
2 changes: 0 additions & 2 deletions Samurai/Models/RpcResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "System" reference instruction must be defined at the top of the code file.

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace AcidChicken.Samurai.Models
{
Expand Down
3 changes: 0 additions & 3 deletions Samurai/Models/Ticker.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "System" reference instruction must be defined at the top of the code file.

using Newtonsoft.Json;

namespace AcidChicken.Samurai.Models
{
using Tasks;

[JsonObject]
public class Ticker
{
Expand Down
6 changes: 2 additions & 4 deletions Samurai/Modules/CommonModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using AcidChicken.Samurai.Assets;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Components;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Discord;
using Discord.Commands;

namespace AcidChicken.Samurai.Modules
{
using static Program;
using Assets;
using Components;
using Models;
using Tasks;

[Group(""), Summary("汎用モジュールです。")]
public class CommonModule : ModuleBase
Expand Down
7 changes: 2 additions & 5 deletions Samurai/Modules/ConversionModule.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using System;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "System" reference instruction must be defined at the top of the code file.

using System.Linq;
using System.Threading.Tasks;
using AcidChicken.Samurai.Assets;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Components;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Discord;
using Discord.Commands;

namespace AcidChicken.Samurai.Modules
{
using static Program;
using Assets;
using Components;

[Group("conversion"), Summary("通貨換算モジュールです。"), Alias("conv", "c")]
public class ConversionModule : ModuleBase
{
Expand Down
5 changes: 2 additions & 3 deletions Samurai/Modules/ModuleManager.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
using System;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "System" reference instruction must be defined at the top of the code file.

using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using AcidChicken.Samurai.Assets;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Components;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Discord;
using Discord.Commands;
using Discord.WebSocket;

namespace AcidChicken.Samurai.Modules
{
using static Program;
using Assets;
using Components;

public static class ModuleManager
{
Expand Down
12 changes: 4 additions & 8 deletions Samurai/Modules/TippingModule.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AcidChicken.Samurai.Assets;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Components;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Models;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Tasks;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Discord;
using Discord.Commands;
using Discord.Net;
using LiteDB;
using Newtonsoft.Json;

namespace AcidChicken.Samurai.Modules
{
using static Program;
using Assets;
using Components;
using Models;
using Tasks;

[Group(""), Summary("投げ銭モジュールです。")]
public class TippingModule : ModuleBase
Expand Down
10 changes: 3 additions & 7 deletions Samurai/Program.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using AcidChicken.Samurai.Models;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Modules;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Tasks;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Discord;
using Discord.WebSocket;
using LiteDB;
using Newtonsoft.Json;

namespace AcidChicken.Samurai
{
using Components;
using Models;
using Modules;
using Tasks;

public static class Program
{
public const string ConfigurePath = "config.json";
Expand Down
6 changes: 2 additions & 4 deletions Samurai/Tasks/TickerManager.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using AcidChicken.Samurai.Components;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using AcidChicken.Samurai.Models;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Discord;
using Newtonsoft.Json;

namespace AcidChicken.Samurai.Tasks
{
using static Program;
using Components;
using Models;

public static class TickerManager
{
Expand Down
8 changes: 1 addition & 7 deletions Samurai/Tasks/TippingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,16 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using AcidChicken.Samurai.Models;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the local namespace reference instructions have to be included in the local namespace block.

using Discord;
using LiteDB;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace AcidChicken.Samurai.Tasks
{
using static Program;
using Components;
using Models;

public static class TippingManager
{
Expand Down