Revision 64171b56 trunk/Pithos.Interfaces/ObjectInfo.cs
b/trunk/Pithos.Interfaces/ObjectInfo.cs | ||
---|---|---|
164 | 164 |
[JsonProperty("X_Object_Public")] |
165 | 165 |
public string PublicUrl { get; set; } |
166 | 166 |
|
167 |
public string PreviousHash { get; set; } |
|
168 |
|
|
167 | 169 |
public ObjectInfo() |
168 | 170 |
{} |
169 | 171 |
|
... | ... | |
310 | 312 |
} |
311 | 313 |
Permissions = permDict; |
312 | 314 |
} |
315 |
|
|
316 |
//The previous values that correspond to a NoModification object |
|
317 |
//have the same account, container and possibly the same folder |
|
318 |
public bool CorrespondsTo(ObjectInfo other) |
|
319 |
{ |
|
320 |
return other.Account == this.Account |
|
321 |
&& other.Container == this.Container |
|
322 |
&& (this.Name == null || other.Name.StartsWith(this.Name)); |
|
323 |
} |
|
313 | 324 |
} |
314 | 325 |
} |
Also available in: Unified diff