Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2158 from github/autocompletebox-fix
Browse files Browse the repository at this point in the history
Modernizing and Implementing Autocompletebox
  • Loading branch information
StanleyGoldman authored Apr 10, 2019
2 parents f8cfdae + 76ebd75 commit 0b5badb
Show file tree
Hide file tree
Showing 57 changed files with 1,188 additions and 1,310 deletions.
147 changes: 0 additions & 147 deletions src/GitHub.App/Caches/AutoCompleteSourceCache.cs

This file was deleted.

17 changes: 0 additions & 17 deletions src/GitHub.App/Caches/IAutoCompleteSourceCache.cs

This file was deleted.

12 changes: 0 additions & 12 deletions src/GitHub.App/Caches/IIssuesCache.cs

This file was deleted.

14 changes: 0 additions & 14 deletions src/GitHub.App/Caches/IMentionsCache.cs

This file was deleted.

80 changes: 0 additions & 80 deletions src/GitHub.App/Caches/IssuesCache.cs

This file was deleted.

50 changes: 0 additions & 50 deletions src/GitHub.App/Caches/MentionsCache.cs

This file was deleted.

29 changes: 8 additions & 21 deletions src/GitHub.App/Models/SuggestionItem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using GitHub.Extensions;
using GitHub.Helpers;

namespace GitHub.Models
Expand All @@ -9,36 +10,22 @@ namespace GitHub.Models
/// </summary>
public class SuggestionItem
{
public SuggestionItem() // So this can be deserialized from cache
{
}

public SuggestionItem(string name, Uri iconCacheKey)
{
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNull(iconCacheKey, "iconCacheKey");

Name = name;
IconKey = iconCacheKey;
}

public SuggestionItem(string name, string description)
{
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNullOrEmptyString(description, "description");
Guard.ArgumentNotEmptyString(name, "name");
Guard.ArgumentNotEmptyString(description, "description");

Name = name;
Description = description;
}

public SuggestionItem(string name, string description, Uri iconCacheKey)
public SuggestionItem(string name, string description, string imageUrl)
{
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNull(iconCacheKey, "iconCacheKey");
Guard.ArgumentNotEmptyString(name, "name");

Name = name;
Description = description;
IconKey = iconCacheKey;
ImageUrl = imageUrl;
}

/// <summary>
Expand All @@ -52,9 +39,9 @@ public SuggestionItem(string name, string description, Uri iconCacheKey)
public string Description { get; set; }

/// <summary>
/// A key to lookup when displaying the icon for this entry
/// An image url for this entry
/// </summary>
public Uri IconKey { get; set; }
public string ImageUrl { get; set; }

/// <summary>
/// The date this suggestion was last modified according to the API.
Expand Down
Loading

0 comments on commit 0b5badb

Please sign in to comment.