From e216702bcfdf3d6a90f59e11984098990f069043 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Tue, 5 Feb 2019 19:53:50 +0100 Subject: Complete rename ImageSize -> ImageDimensions --- MediaBrowser.Model/Drawing/ImageDimensions.cs | 36 +++++++++++++++++++++++++++ MediaBrowser.Model/Drawing/ImageSize.cs | 36 --------------------------- 2 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 MediaBrowser.Model/Drawing/ImageDimensions.cs delete mode 100644 MediaBrowser.Model/Drawing/ImageSize.cs (limited to 'MediaBrowser.Model/Drawing') diff --git a/MediaBrowser.Model/Drawing/ImageDimensions.cs b/MediaBrowser.Model/Drawing/ImageDimensions.cs new file mode 100644 index 000000000..e7805ac49 --- /dev/null +++ b/MediaBrowser.Model/Drawing/ImageDimensions.cs @@ -0,0 +1,36 @@ +namespace MediaBrowser.Model.Drawing +{ + /// + /// Struct ImageDimensions + /// + public struct ImageDimensions + { + /// + /// Gets or sets the height. + /// + /// The height. + public int Height { get; set; } + + /// + /// Gets or sets the width. + /// + /// The width. + public int Width { get; set; } + + public bool Equals(ImageDimensions size) + { + return Width.Equals(size.Width) && Height.Equals(size.Height); + } + + public override string ToString() + { + return string.Format("{0}-{1}", Width, Height); + } + + public ImageDimensions(int width, int height) + { + Width = width; + Height = height; + } + } +} diff --git a/MediaBrowser.Model/Drawing/ImageSize.cs b/MediaBrowser.Model/Drawing/ImageSize.cs deleted file mode 100644 index 75591d83d..000000000 --- a/MediaBrowser.Model/Drawing/ImageSize.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace MediaBrowser.Model.Drawing -{ - /// - /// Struct ImageSize - /// - public struct ImageDimensions - { - /// - /// Gets or sets the height. - /// - /// The height. - public int Height { get; set; } - - /// - /// Gets or sets the width. - /// - /// The width. - public int Width { get; set; } - - public bool Equals(ImageDimensions size) - { - return Width.Equals(size.Width) && Height.Equals(size.Height); - } - - public override string ToString() - { - return string.Format("{0}-{1}", Width, Height); - } - - public ImageDimensions(int width, int height) - { - Width = width; - Height = height; - } - } -} -- cgit v1.2.3