This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AutoCompleteTextField.Setup(this, new List<string>() { "customizable", "xamarin", "autocomplete", "ios" }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyDataFetcher : IDataFetcher | |
{ | |
private MapsPlaceAutoComplete autoCompleteMaps = new MapsPlaceAutoComplete(); | |
public async Task PerformFetch(MBAutoCompleteTextField textfield, Action<ICollection<string>> completionHandler) | |
{ | |
var result = await autoCompleteMaps.AutoComplete(textfield.Text); | |
var strings = result.Select(rs => rs.description).ToList(); | |
completionHandler(strings); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SimpleSortingAlgorithm : ISortingAlghorithm | |
{ | |
private int _maxChanges = 3; | |
public SimpleSortingAlgorithm() { } | |
public ICollection<string> DoSort(string userInput, ICollection<string> inputStrings) | |
{ | |
var correctedStrings = new List<string>(); | |
foreach (string input in inputStrings) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyViewSource : MBAutoCompleteViewSource | |
{ | |
private ICollection<string> _suggestions; | |
private string _cellIdentifier = "CellId"; | |
public override void NewSuggestions(ICollection<string> suggestions) | |
{ | |
_suggestions = suggestions; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AuthSettings | |
{ | |
public AuthSettings(Uri apiBase, string token, string username = null) | |
{ | |
ApiBase = apiBase; | |
Token = token; | |
Username = username; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AuthSettings | |
{ | |
public AuthSettings(Uri apiBase, string token, string? username) | |
{ | |
Username = username; | |
//Handle other params | |
} | |
public string? Username { get; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PullRequestRequest | |
{ | |
public PullRequestRequest() | |
{ | |
} | |
public string Body { get; set; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string Body? { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PullRequestRequest | |
{ | |
public PullRequestRequest(string body) | |
{ | |
Body = body; | |
} | |
public string Body { get; set; } | |
} | |