repo base: move method for consistency
This commit is contained in:
parent
2e075959c4
commit
898c685cb6
|
@ -51,18 +51,6 @@ namespace SparkleLib {
|
||||||
private bool has_changed = false;
|
private bool has_changed = false;
|
||||||
private Object change_lock = new Object ();
|
private Object change_lock = new Object ();
|
||||||
|
|
||||||
public string Domain {
|
|
||||||
get {
|
|
||||||
Regex regex = new Regex (@"(@|://)([a-z0-9\.]+)(/|:)");
|
|
||||||
Match match = regex.Match (Url);
|
|
||||||
|
|
||||||
if (match.Success)
|
|
||||||
return match.Groups [2].Value;
|
|
||||||
else
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract string Url { get; }
|
public abstract string Url { get; }
|
||||||
public abstract bool AnyDifferences { get; }
|
public abstract bool AnyDifferences { get; }
|
||||||
public abstract string Identifier { get; }
|
public abstract string Identifier { get; }
|
||||||
|
@ -162,6 +150,20 @@ namespace SparkleLib {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public string Domain {
|
||||||
|
get {
|
||||||
|
Regex regex = new Regex (@"(@|://)([a-z0-9\.]+)(/|:)");
|
||||||
|
Match match = regex.Match (Url);
|
||||||
|
|
||||||
|
if (match.Success)
|
||||||
|
return match.Groups [2].Value;
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void OnConflictResolved ()
|
protected void OnConflictResolved ()
|
||||||
{
|
{
|
||||||
HasUnsyncedChanges = true;
|
HasUnsyncedChanges = true;
|
||||||
|
|
Loading…
Reference in a new issue